[tools] mrepo create wrong sha1sum
Dag Wieers
dag at wieers.com
Wed May 2 13:39:06 CEST 2007
On Wed, 2 May 2007, Stephan Hendl wrote:
> I've a strange problem running mrepo during night on an CentOS 4.4 system for FC6 updates.
>
> The calculated sha1sum by mrepo for the updated tcpdump as well as the libpcap packets (and only for these two packets!) are different to the estimated by the FC6 installation program - therefor the http based installation with kickstart fails.
>
> Regards,
> Stephan
>
> [root at lkvbb2 repodata]# rpm -qa mrepo
> mrepo-0.8.4-1.el4.rf
>
> [root at lkvbb2 repodata]# sha1sum /ftp/mrepo/FC6-i386/updates/tcpdump-3.9.4-10.fc6.i386.rpm
> ff96b19fc143e19d2154cc1a65dceb5d64f7fdf3 /ftp/mrepo/FC6-i386/updates/tcpdump-3.9.4-10.fc6.i386.rpm
>
> [root at lkvbb2 repodata]# zcat filelists.xml.gz | grep tcpdump
> <package pkgid="b800f281187f03a9b3d6242b99d128e925b4f5b9" name="tcpdump" arch="i386">
> <file>/usr/sbin/tcpdump</file>
> <file>/usr/share/doc/tcpdump-3.9.4/CHANGES</file>
> <file>/usr/share/doc/tcpdump-3.9.4/LICENSE</file>
> <file>/usr/share/doc/tcpdump-3.9.4/README</file>
> <file>/usr/share/man/man8/tcpdump.8.gz</file>
> <file type="dir">/usr/share/doc/tcpdump-3.9.4</file>
That is weird.
Wild guess: you have hardlinking enabled and one of your other
repositories contains a different tcpdump/libpcap with the exact same
filename. (like eg. RHEL5)
[I didn't see hardlinking enabled in config so I guess we can rule that
out]
Wild guess 2: fedora at some point released the same versioned package
with different content, createrepo cached this sha1sum and is now using
the cached sha1sum instead of the real one.
Can you try to rebuild the repository again, just to make sure it doesn't
get fixed by itself during a rerun ? If the same things happens, the
remove the cache directory in /var/cache/mrepo/
If that fixes it, Fedora replaced an existing package and/or createrepo
has a bug. It is a known problem with createrepo that it fails to work if
you replace a package with the exact same filename (so caching really is a
dumb implementation).
Kind regards,
-- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
[all I want is a warm bed and a kind word and unlimited power]
More information about the tools
mailing list