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