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.
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: