don't attempt to unmerge a set that doesn't exist anymore
authorMarius Mauch <genone@gentoo.org>
Mon, 22 Sep 2008 11:14:46 +0000 (11:14 -0000)
committerMarius Mauch <genone@gentoo.org>
Mon, 22 Sep 2008 11:14:46 +0000 (11:14 -0000)
svn path=/main/trunk/; revision=11533

pym/_emerge/__init__.py

index b0d6755941f73bbef582f1b4a78a48cf6abb505e..ac4d48f8c3ffddf2c948dc649ef5f1f4af183602 100644 (file)
@@ -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