From 0a1c9e82f925d820ab1020de244fcbb3262def91 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 31 Jul 2008 12:58:57 +0000 Subject: Fix DowngradeSet so it's safe for cases when no ebuild is available. svn path=/main/trunk/; revision=11300 --- pym/portage/sets/dbapi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pym') 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: -- cgit v1.2.3-1-g7c22