summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 2148545ca..7309fb138 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -5991,9 +5991,10 @@ def unmerge(root_config, myopts, unmerge_action,
else:
if clean_world:
sets["world"].cleanPackage(vartree.dbapi, y)
- for s in root_config.setconfig.active:
- sets["world"].remove(SETPREFIX+s)
emergelog(xterm_titles, " >>> unmerge success: "+y)
+ if clean_world_
+ for s in root_config.setconfig.active:
+ sets["world"].remove(SETPREFIX+s)
return 1
def chk_updated_info_files(root, infodirs, prev_mtimes, retval):