From 4069541d2f5e11371b014f49b5057e1f30f28e05 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 23 Sep 2006 10:30:25 +0000 Subject: [PATCH] Only lock PORTAGE_BUILDDIR if the ebuild exists (otherwise we don't run prerm and postrm). svn path=/main/trunk/; revision=4515 --- pym/portage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index b158b291c..b8bfa118e 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5763,10 +5763,10 @@ class dblink: gid=portage_gid, mode=070, mask=02) builddir_lock = None try: - builddir_lock = portage_locks.lockdir( - self.settings["PORTAGE_BUILDDIR"]) - if myebuildpath: + builddir_lock = portage_locks.lockdir( + self.settings["PORTAGE_BUILDDIR"]) + # Eventually, we'd like to pass in the saved ebuild env here... retval = doebuild(myebuildpath, "prerm", self.myroot, self.settings, cleanup=cleanup, use_cache=0, -- 2.26.2