summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-23 10:30:25 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-23 10:30:25 +0000
commit4069541d2f5e11371b014f49b5057e1f30f28e05 (patch)
treeada50e6cf7e0e64bfd856f7816c0eae7eb06ea88
parenta61d4ff691133ca34ff86262635757116c6aa4ec (diff)
downloadportage-4069541d2f5e11371b014f49b5057e1f30f28e05.tar.gz
portage-4069541d2f5e11371b014f49b5057e1f30f28e05.tar.bz2
portage-4069541d2f5e11371b014f49b5057e1f30f28e05.zip
Only lock PORTAGE_BUILDDIR if the ebuild exists (otherwise we don't run prerm and postrm).
svn path=/main/trunk/; revision=4515
-rw-r--r--pym/portage.py6
1 files 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,