Seth, As per your suggestion, I will use 'po.pkgId' and also 'po.checksum_type' I need a 'csumtype'. Thank you for the pointer. I appreciate it. -Nicholas- seth vidal-3 wrote: > > > On Sat, 2008-03-08 at 01:49 -0500, seth vidal wrote: >> On Fri, 2008-03-07 at 22:35 -0800, Nicholas Adrian wrote: >> > Hi, >> > I have a checksum problem after upgraded to yum 3.2.8 (from 3.0.5). >> > >> > I have the following code in the predownload hook. >> > >> > - - - - - >> > def predownload_hook(conduit): >> > pkglist = conduit.getDownloadPackages() >> > for po in pkglist: >> > for (csumtype, csum, csumid) in po.checksums: >> > if csumid: >> > checksum = "%s:%s" % (csumtype, csum) >> > break >> > >> > print "checksum: %s " % (checksum,) >> > >> >> Yah - so it looks like for sqlite sacks we're not ever making the >> checksums list which is required. YumAvailablePackageSqlite just needs a >> returnChecksums() method added. I'll get this fixed up but you could >> simplify your code by using: >> >> 1. po.pkgId - that's the only checksum you really need >> 2. po.returnIdSum() - which returns the checksum type and the checksum >> in a tuple >> >> I'd suggest number 1 - that's most consistent >> >> However, I will fix this. > > > I checked in a fix. though I would suggest stopping using po.checksums > > thanks > > -sv > > > _______________________________________________ > Yum mailing list > Yum@xxxxxxxxxxxxxxxxxxxx > https://lists.dulug.duke.edu/mailman/listinfo/yum > > -- View this message in context: http://www.nabble.com/yum-3.2.8---checksum-problem-%28it-works-fine-on-3.0.5%29-tp15911757p15912908.html Sent from the YUM - Users mailing list archive at Nabble.com. _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum