summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-31 12:58:57 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-31 12:58:57 +0000
commit0a1c9e82f925d820ab1020de244fcbb3262def91 (patch)
tree698866645b575f91b817307b60860446a88d04ca /pym
parente1c9b13944cc3c74bd6e0b98b0f98c08c270b307 (diff)
downloadportage-0a1c9e82f925d820ab1020de244fcbb3262def91.tar.gz
portage-0a1c9e82f925d820ab1020de244fcbb3262def91.tar.bz2
portage-0a1c9e82f925d820ab1020de244fcbb3262def91.zip
Fix DowngradeSet so it's safe for cases when no ebuild is available.
svn path=/main/trunk/; revision=11300
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/sets/dbapi.py2
1 files changed, 2 insertions, 0 deletions
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: