Merge remote-tracking branch 'juliank/no-testing-triggers'

less-recipients
Steve Langasek 3 years ago
commit d9d6261b0c

@ -562,6 +562,7 @@ class AutopkgtestPolicy(BasePolicy):
pkg_universe = self.britney.pkg_universe
target_suite = self.suite_info.target_suite
source_suite = item.suite
sources_t = target_suite.sources
sources_s = item.suite.sources
packages_s_a = item.suite.binaries[arch]
source_name = item.package
@ -646,6 +647,8 @@ class AutopkgtestPolicy(BasePolicy):
if binary.architecture == arch:
try:
source_of_bin = packages_s_a[binary.package_name].source
if (sources_t.get(source_of_bin, None) is None or
sources_s[source_of_bin].version != sources_t[source_of_bin].version):
triggers.add(
source_of_bin + '/' +
sources_s[source_of_bin].version)
@ -657,6 +660,8 @@ class AutopkgtestPolicy(BasePolicy):
if binary not in source_data_srcdist.binaries:
for tdep_src in self.testsuite_triggers.get(binary.package_name, set()):
try:
if (sources_t.get(tdep_src, None) is None or
sources_s[tdep_src].version != sources_t[tdep_src].version):
triggers.add(
tdep_src + '/' +
sources_s[tdep_src].version)

Loading…
Cancel
Save