Lines 865-877
class Scheduler(PollScheduler):
Link Here
|
865 |
if self._terminated_tasks: |
865 |
if self._terminated_tasks: |
866 |
raise asyncio.CancelledError |
866 |
raise asyncio.CancelledError |
867 |
|
867 |
|
868 |
out_str = "Running pre-merge checks for " + colorize("INFORM", x.cpv) |
|
|
869 |
self._status_msg(out_str) |
870 |
|
871 |
root_config = x.root_config |
868 |
root_config = x.root_config |
872 |
settings = self._allocate_config(root_config.root) |
869 |
settings = self._allocate_config(root_config.root) |
873 |
settings.setcpv(x) |
870 |
settings.setcpv(x) |
874 |
if not x.built: |
871 |
|
|
|
872 |
if x.built: |
873 |
out_str = "Running pre-merge checks for " + colorize("PKG_BINARY_MERGE", x.cpv) |
874 |
else: |
875 |
out_str = "Running pre-merge checks for " + colorize("INFORM", x.cpv) |
876 |
|
875 |
# Get required SRC_URI metadata (it's not cached in x.metadata |
877 |
# Get required SRC_URI metadata (it's not cached in x.metadata |
876 |
# because some packages have an extremely large SRC_URI value). |
878 |
# because some packages have an extremely large SRC_URI value). |
877 |
portdb = root_config.trees["porttree"].dbapi |
879 |
portdb = root_config.trees["porttree"].dbapi |
Lines 879-884
class Scheduler(PollScheduler):
Link Here
|
879 |
x.cpv, ["SRC_URI"], myrepo=x.repo, loop=loop |
881 |
x.cpv, ["SRC_URI"], myrepo=x.repo, loop=loop |
880 |
) |
882 |
) |
881 |
|
883 |
|
|
|
884 |
self._status_msg(out_str) |
885 |
|
882 |
# setcpv/package.env allows for per-package PORTAGE_TMPDIR so we |
886 |
# setcpv/package.env allows for per-package PORTAGE_TMPDIR so we |
883 |
# have to validate it for each package |
887 |
# have to validate it for each package |
884 |
rval = _check_temp_dir(settings) |
888 |
rval = _check_temp_dir(settings) |