Make dblink.treewalk() properly delete the installed instance after
authorZac Medico <zmedico@gentoo.org>
Thu, 29 Nov 2007 00:50:07 +0000 (00:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 29 Nov 2007 00:50:07 +0000 (00:50 -0000)
it unmerges it.

svn path=/main/trunk/; revision=8737

pym/portage/dbapi/vartree.py

index 5b64fd76a4954b4daef6b013dfd15948707e0564..ff2a1caf2796bbda574328e0f7a6c57b165bdd40 100644 (file)
@@ -2029,6 +2029,8 @@ class dblink(object):
                        others_in_slot.remove(dblnk) # dblnk will unmerge itself now
                        dblnk.unmerge(trimworld=0, ldpath_mtimes=prev_mtimes,
                                others_in_slot=others_in_slot)
+                       # TODO: Check status and abort if necessary.
+                       dblnk.delete()
                        writemsg_stdout(">>> Original instance of package unmerged safely.\n")
                        break