From cd7334c158763b53c113534d840bd1918944a7cc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 5 Jul 2006 18:39:27 +0000 Subject: [PATCH] Use a cloned config instance for the depend phase in portdbapi.aux_get(). See bug #132601. svn path=/main/trunk/; revision=3791 --- pym/portage.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index f9ebc9999..f1ed48e27 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5041,10 +5041,6 @@ class portdbapi(dbapi): else: mydbkey = self.depcachedir+"/aux_db_key_temp" - # XXX: Part of the gvisible hack/fix to prevent deadlock - # XXX: through doebuild. Need to isolate this somehow... - self.mysettings.reset() - if self.lock_held: raise "Lock is already held by me?" self.lock_held = 1 @@ -5059,7 +5055,8 @@ class portdbapi(dbapi): writemsg("Uncaught handled exception: %(exception)s\n" % {"exception":str(e)}) raise - myret = doebuild(myebuild, "depend", "/", self.mysettings, + ebuild_settings = config(clone=self.mysettings) + myret = doebuild(myebuild, "depend", "/", ebuild_settings, dbkey=mydbkey, tree="porttree", mydbapi=self) if myret: portage_locks.unlockfile(mylock) -- 2.26.2