From: Zac Medico Date: Thu, 31 Jul 2008 12:58:57 +0000 (-0000) Subject: Fix DowngradeSet so it's safe for cases when no ebuild is available. X-Git-Tag: v2.2_rc6~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a1c9e82f925d820ab1020de244fcbb3262def91;p=portage.git Fix DowngradeSet so it's safe for cases when no ebuild is available. svn path=/main/trunk/; revision=11300 --- diff --git a/pym/portage/sets/dbapi.py b/pym/portage/sets/dbapi.py index 28632f43b..798b322e3 100644 --- a/pym/portage/sets/dbapi.py +++ b/pym/portage/sets/dbapi.py @@ -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: