mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Jon Ringle <jon@ringle.org>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] Detect changes in package patch series
Date: Fri, 3 Aug 2018 03:57:57 -0400	[thread overview]
Message-ID: <CAMwGMjySMiRrKyqGkiadkD-_RKq-pHsuYMPLCMTMve6XvwNxCw@mail.gmail.com> (raw)
In-Reply-To: <CAMwGMjyp7sCYQPb8nscFWTbvuCEocj35N5R-80NTqbS2jS63zg@mail.gmail.com>

On Fri, Aug 3, 2018 at 3:36 AM Jon Ringle <jon@ringle.org> wrote:
>
> On Fri, Aug 3, 2018 at 3:19 AM Uwe Kleine-König
> <u.kleine-koenig@pengutronix.de> wrote:
> >
> > Hello Jon,
> >
> > On Thu, Aug 02, 2018 at 09:49:59PM -0400, jon@ringle.org wrote:
> > > diff --git a/scripts/git-ptx-patches b/scripts/git-ptx-patches
> > > index f2568f9..738a4ac 100755
> > > --- a/scripts/git-ptx-patches
> > > +++ b/scripts/git-ptx-patches
> > > @@ -2,11 +2,33 @@
> > >
> > >  PTX_PATCHES_HEADER="# generated by git-ptx-patches"
> > >
> > > -function _md5sum() {
> > > -     local sum=$(md5sum)
> > > +function _sha1sum() {
> > > +     local sum=$(git rev-parse HEAD)
> > >       echo "# $sum git-ptx-patches magic"
> > >  }
> > >
> > > +update_series_md5() {
> > > +     local makefile="$(readlink -f .ptxdist/rule.make)"
> > > +     source .ptxdist/rule.env
> > > +     set -- $(md5sum .ptxdist/series)
> > > +     local md5="${1}"
> >
> > Is this better than:
> >
> >         local md5="$(md5sum .ptxdist/series)"
> >
> > ?
>
> I was modeling the pattern found in `ptxd_make_world_update_md5()`
> found in scripts/lib/ptxd_make_world_check_src.sh:
>   | ptxd_make_world_update_md5() {
>   |     local PKG="$(ptxd_name_to_NAME "${pkg_label}")"
>   |     set -- $(md5sum "${pkg_src}")
>   |     local md5="${1}"
>
> I can change it to the way you are suggesting, though

local sha256="$(sha256sum .ptxdist/series)"
does not work, because this assigns to sha256 the value
"36169a70924328a204978a3bee7100efa526059b41a11572bdf210048109a808
.ptxdist/series"

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2018-08-03  7:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-03  1:49 jon
2018-08-03  7:19 ` Uwe Kleine-König
2018-08-03  7:36   ` Jon Ringle
2018-08-03  7:57     ` Jon Ringle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMwGMjySMiRrKyqGkiadkD-_RKq-pHsuYMPLCMTMve6XvwNxCw@mail.gmail.com \
    --to=jon@ringle.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox