From: Zac Medico Date: Sat, 23 Sep 2006 10:30:25 +0000 (-0000) Subject: Only lock PORTAGE_BUILDDIR if the ebuild exists (otherwise we don't run prerm and... X-Git-Tag: v2.1.1-r1~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4069541d2f5e11371b014f49b5057e1f30f28e05;p=portage.git Only lock PORTAGE_BUILDDIR if the ebuild exists (otherwise we don't run prerm and postrm). svn path=/main/trunk/; revision=4515 --- 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,