[Yum-devel] look at the pkgid insanity
seth vidal
skvidal at fedoraproject.org
Sat Mar 8 07:42:38 UTC 2008
A quick fun game:
run python and do this:
import yum
my = yum.YumBase()
my.conf.cache = 1
po = my.rpmdb.searchNevra(name='yum')[0]
po.pkgid
po.pkgId
po.pkgID
notice how they aren't the same? :)
now do the same thing with an available package.
so for an installed package:
po.pkgid == SHA1HEADER or name + buildtime if SHA1HEADER doesn't exist
in the header
po.pkgId == internal rpm hdr tag - could be a gpg sig, could be another
checksum
po.pkgID == internal rpm hdr tag - matches pkgId
anyone have any preferences on which we should show for installed pkgs?
-sv
More information about the Yum-devel
mailing list