*.py packaging, again

Tomasz Pala gotar at polanet.pl
Thu Jul 14 17:10:09 CEST 2011

On Thu, Jul 14, 2011 at 17:04:02 +0200, Tomasz Pala wrote:

>>> *  I had an idea once upon a time to verify content of repackaged files
>>>   against original digest, I really miss this feature in rpm (rpm -Vp
>>>   verifies package against filesystem not internal cpio).
>> Remove the RPMTAG_REMOVETID poisoning and repackaging (for most packages)
>> becomes an exact inverse and file digests can then be verified just
>> like any other package.
> By rpm binary? How?

For example, I got original file (currently installed):

~:  rpm -Kvv iceweasel-3.6.17-1.i686.rpm 
D: Expected size:      6683934 = lead(96)+sigs(920)+pad(0)+data(6682918)
D:   Actual size:      6683934
    Header SHA1 digest: OK (b0509c227544d3d4860b484e8afde6eec28a051b)
    MD5 digest: OK (a92e0a2dc52504d42959bb67741596f7)

~:  rpm -Vp iceweasel-3.6.17-1.i686.rpm 
Unsatisfied dependencies for iceweasel-3.6.17-1.i686:
        Requires: libhunspell-1.2.so.0

S.5....T   /usr/bin/iceweasel
S.5....T   /usr/lib/iceweasel/components/nsLoginManager.js
S.5....T   /usr/lib/iceweasel/components/storage-Legacy.js
S.5....T   /usr/lib/iceweasel/components/storage-mozStorage.js

And I got some previous, repackaged file:

/var/spool/repackage/1309337365#  rpm -Kvv iceweasel-3.6.13-2.i686.rpm
D: Expected size:      7452100 = lead(96)+sigs(180)+pad(4)+data(7451820)
D:   Actual size:      7506959
    Header SHA1 digest: OK (9ad4a3fb6c194ba14c5b85f20e8aa567bbce3764)
    MD5 digest: BAD Expected(51df700b3bfa11a73df0d1219eae9f97) != (43b884021c55da3d87f9e76f83f5ceb4)

How can I list files within the latter archive, that were modified
before repackage (in this case I know they are exactly the same 3 as above).

Tomasz Pala <gotar at pld-linux.org>

More information about the pld-devel-en mailing list