Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery] md5unpack

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery] md5unpack
  • Date: Mon, 1 Mar 2004 12:03:59 +0100

On Mon, Mar 01, 2004 at 10:39:07AM +0100, Treeve Jelbert wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> fior the last few days, md5unpack seems to be returning incorrect values.
>
>
> I'm not sure what has changed on my sytem which might affect this, possibly
> coreutils?
>
> $ md5unpack /var/spool/sorcery/aspell-0.50.5.tar.gz
> 81538f638c152b8f81eb4f06311b5a6dar 1
> 09:45 /var/spool/sorcery/aspell-0.50.5.tar.gz
>
>
> $ zcat /var/spool/sorcery/aspell-0.50.5.tar.gz|md5sum
> 81538f638c152b8f81eb4f06311b5a6d -
>
>
> $ md5unpack /var/spool/sorcery/gDesklets-0.26.tar.bz2
>
> f6771f871eb17c0494cfd96be450fc3eb 28
> 17:33 /var/spool/sorcery/gDesklets-0.26.tar.bz2
> $ bzcat /var/spool/sorcery/gDesklets-0.26.tar.bz2|md5sum
> f6771f871eb17c0494cfd96be450fc3e -
>
>
>
>
> After checking several several files, it looks as if md5unpack is now
> appending part of the Month field to the actual value.

Seems like ls -l output changed slightly, breaking the current md5unpack
sript. I fixed it by chaning the ls -l | cut thing to a ls -1 $f,
updated script attached.

--
Arwed v. Merkatz Sourcemage GNU/Linux developer
http://www.sourcemage.org
#!/bin/bash
. /etc/sorcery/config;for f in ${*};do echo -n "$(uncompress $f \
$(guess_compressor $f)|md5sum|cut -d' ' -f1) "; ls -1 $f;done



  • [SM-Sorcery] md5unpack, Treeve Jelbert, 03/01/2004
    • Re: [SM-Sorcery] md5unpack, Arwed von Merkatz, 03/01/2004

Archive powered by MHonArc 2.6.24.

Top of Page