summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 692d52c33..0bf16c6be 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6058,12 +6058,11 @@ class dblink:
outfile.flush()
outfile.close()
- if (oldcontents):
- writemsg_stdout(">>> Safely unmerging already-installed instance...\n")
- self.dbdir = self.dbpkgdir
- self.unmerge(oldcontents,trimworld=0)
- self.dbdir = self.dbtmpdir
- writemsg_stdout(">>> original instance of package unmerged safely.\n")
+ writemsg_stdout(">>> Safely unmerging already-installed instance...\n")
+ self.dbdir = self.dbpkgdir
+ self.unmerge(oldcontents,trimworld=0)
+ self.dbdir = self.dbtmpdir
+ writemsg_stdout(">>> original instance of package unmerged safely.\n")
# We hold both directory locks.
self.dbdir = self.dbpkgdir