Description of problem: I would like to have this work: my = yum.YumBase() pkg = my.rpmdb.returnPackages()[0] print "%(name)s-%(version)s-%(release)s.%(arch)s.rpm" % pkg It only requires a __getitem__ function like this: yum.rpmsack.RPMInstalledPackage.__getitem__ = lambda self, key: getattr(self, key)
We might well make that work, for both installed/available packages however note that you can do: print "%(name)s-%(version)s-%(release)s.%(arch)s.rpm" % pkg.__dict__ ...which has probably worked for a long time.
yum-3.2.26-6.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/yum-3.2.26-6.fc13
yum-3.2.26-6.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.27-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/yum-3.2.27-1.fc13
yum-3.2.27-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/yum-3.2.27-1.fc12
yum-3.2.27-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.