From 0a762ab961a18d6e2b38d3ec6b7e4eb0f399b6aa Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 1 Nov 2008 06:48:51 +0000 Subject: Explicitly load the preserved libs registry after obtaining a lock for merge or unmerge, in case the registry has been changed by a parallel emerge instance. svn path=/main/trunk/; revision=11779 --- pym/portage/__init__.py | 1 + pym/portage/dbapi/vartree.py | 1 + 2 files changed, 2 insertions(+) (limited to 'pym') diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 4713d8830..d6b2f77df 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -6066,6 +6066,7 @@ def unmerge(cat, pkg, myroot, mysettings, mytrimworld=1, vartree=None, try: mylink.lockdb() if mylink.exists(): + vartree.dbapi.plib_registry.load() retval = mylink.unmerge(trimworld=mytrimworld, cleanup=1, ldpath_mtimes=ldpath_mtimes) if retval == os.EX_OK: diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index c203d7707..68e0ecf16 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3743,6 +3743,7 @@ class dblink(object): retval = -1 self.lockdb() try: + self.vartree.dbapi.plib_registry.load() retval = self.treewalk(mergeroot, myroot, inforoot, myebuild, cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes) # undo registrations of preserved libraries, bug #210501 -- cgit v1.2.3-1-g7c22