Re: New sources format

2016-12-21 Thread Mathieu Bridon
On Tue, 2016-12-20 at 23:30 +, Pádraig Brady wrote:
> On 20/12/16 22:28, Christopher wrote:
> > 
> > What's with the new sources format?
> > The old format, I could do `md5sum -c sources`
> > Why not make the new format with SHA512 follow the same pattern, so
> > I could do: `shasum -c sources` or `sha512sum -c sources`?
> > 
> > Is there any standard command-line tool to parse this new format,
> > or do I just gotta grep/awk/bash my way through it?
> 
> As far as I can see it's using the BSD tagged format,

It is.

This is a decision we made when moving to sha512, because we wanted the
file to contain the used hash function. (for the future, when we
invariably move again to a new hash function)

We were starting to talk about our own format, then someone (I think it
might have been Peter?) told me about the BSD tagged format, and we
just went with that.

> which the coreutils sha512sum command can parse.
> I.E. the following format is supported since v8.20 (2012-10-23)
> 
>   SHA512 (filename) = ...

Not only can it parse it, it can also generate it:

    $ sha512sum --tag some-file
    SHA512 (some-file) = ...


-- 
Mathieu
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: New sources format

2016-12-20 Thread Christopher
On Tue, Dec 20, 2016 at 6:31 PM Pádraig Brady <p...@draigbrady.com> wrote:

> On 20/12/16 22:28, Christopher wrote:
> > What's with the new sources format?
> > The old format, I could do `md5sum -c sources`
> > Why not make the new format with SHA512 follow the same pattern, so I
> could do: `shasum -c sources` or `sha512sum -c sources`?
> >
> > Is there any standard command-line tool to parse this new format, or do
> I just gotta grep/awk/bash my way through it?
>
> As far as I can see it's using the BSD tagged format,
> which the coreutils sha512sum command can parse.
> I.E. the following format is supported since v8.20 (2012-10-23)
>
>   SHA512 (filename) = ...
>
> cheers,
> Pádraig
>

Ah, okay, my mistake. `sha512sum -c sources` works fine. I accidentally ran
`shasum -c sources` twice!

Thanks! I wasn't previously aware of this format being a standard anywhere.
`man sha512sum` has enlightened me :)
-- 
Christopher
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: New sources format

2016-12-20 Thread Pádraig Brady
On 20/12/16 22:28, Christopher wrote:
> What's with the new sources format?
> The old format, I could do `md5sum -c sources`
> Why not make the new format with SHA512 follow the same pattern, so I could 
> do: `shasum -c sources` or `sha512sum -c sources`?
> 
> Is there any standard command-line tool to parse this new format, or do I 
> just gotta grep/awk/bash my way through it?

As far as I can see it's using the BSD tagged format,
which the coreutils sha512sum command can parse.
I.E. the following format is supported since v8.20 (2012-10-23)

  SHA512 (filename) = ...

cheers,
Pádraig
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


New sources format

2016-12-20 Thread Christopher
What's with the new sources format?
The old format, I could do `md5sum -c sources`
Why not make the new format with SHA512 follow the same pattern, so I could
do: `shasum -c sources` or `sha512sum -c sources`?

Is there any standard command-line tool to parse this new format, or do I
just gotta grep/awk/bash my way through it?

-- 
Christopher
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org