From 77896f08ed12a93ff6ee8a657ae11501cc2dbc87 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 30 Aug 2011 10:03:05 -0700 Subject: [PATCH] doebuild: check distfiles digests less often If the unpack phase is not going to be executed as a dependency, then we can simply skip the distfiles digest checks if the unpack phase is already marked complete via $PORTAGE_BUILDDIR/.unpacked. --- pym/portage/package/ebuild/doebuild.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.26.2