diff options
-rw-r--r-- | pym/portage/package/ebuild/doebuild.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index 92d73e5ec..2ab679606 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -684,7 +684,10 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, alist = set(mysettings.configdict["pkg"].get("A", "").split()) unpacked = False - if "unpack" in phases_to_run: + if "unpack" not in phases_to_run: + unpacked = os.path.exists(os.path.join( + mysettings["PORTAGE_BUILDDIR"], ".unpacked")) + else: try: workdir_st = os.stat(mysettings["WORKDIR"]) except OSError: |