From 4ca862e20fd6d912ae400943893071c62b7f62e7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 4 Nov 2008 23:43:38 +0000 Subject: [PATCH] Fix broken reference to self inside unmerge(). svn path=/main/trunk/; revision=11809 --- pym/portage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 002bb4d6e..8dc4dc9c2 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -6079,6 +6079,7 @@ def unmerge(cat, pkg, myroot, mysettings, mytrimworld=1, vartree=None, ldpath_mtimes=None, scheduler=None): mylink = dblink(cat, pkg, myroot, mysettings, treetype="vartree", vartree=vartree, scheduler=scheduler) + vartree = mylink.vartree try: mylink.lockdb() if mylink.exists(): @@ -6091,7 +6092,7 @@ def unmerge(cat, pkg, myroot, mysettings, mytrimworld=1, vartree=None, return retval return os.EX_OK finally: - self.vartree.dbapi.linkmap._clear_cache() + vartree.dbapi.linkmap._clear_cache() mylink.unlockdb() def getCPFromCPV(mycpv): -- 2.26.2