Fix DowngradeSet so it's safe for cases when no ebuild is available.
authorZac Medico <zmedico@gentoo.org>
Thu, 31 Jul 2008 12:58:57 +0000 (12:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 31 Jul 2008 12:58:57 +0000 (12:58 -0000)
svn path=/main/trunk/; revision=11300

pym/portage/sets/dbapi.py

index 28632f43b3b701ad5fc8caa9352cd3a4186050ab..798b322e3533aaf8ded7430143127068d98d7d66 100644 (file)
@@ -130,6 +130,8 @@ class DowngradeSet(PackageSet):
                                slot, = aux_get(cpv, aux_keys)
                                slot_atom = "%s:%s" % (cp, slot)
                                ebuild = xmatch(xmatch_level, slot_atom)
+                               if not ebuild:
+                                       continue
                                ebuild_split = catpkgsplit(ebuild)[1:]
                                installed_split = catpkgsplit(cpv)[1:]
                                if pkgcmp(installed_split, ebuild_split) > 0: