summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2008-09-22 11:14:46 +0000
committerMarius Mauch <genone@gentoo.org>2008-09-22 11:14:46 +0000
commite5f02cae1050f45c24ed6370ec8365b2ba8e69c4 (patch)
treec16549b06d6d163df22733943a547770fc777b8c
parent29036c4bfc548426b85bae0ab7f373e986aca9fe (diff)
downloadportage-e5f02cae1050f45c24ed6370ec8365b2ba8e69c4.tar.gz
portage-e5f02cae1050f45c24ed6370ec8365b2ba8e69c4.tar.bz2
portage-e5f02cae1050f45c24ed6370ec8365b2ba8e69c4.zip
don't attempt to unmerge a set that doesn't exist anymore
svn path=/main/trunk/; revision=11533
-rw-r--r--pym/_emerge/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index b0d675594..ac4d48f8c 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -10539,6 +10539,8 @@ def unmerge(root_config, myopts, unmerge_action,
stop = True
pos = len(installed_sets)
for s in installed_sets[pos - 1:]:
+ if s not in sets:
+ continue
candidates = [x[len(SETPREFIX):] for x in sets[s].getNonAtoms() if x.startswith(SETPREFIX)]
if candidates:
stop = False