summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_scheduler.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2017-05-15 12:03:41 +0200
committerHolger Levsen <holger@layer-acht.org>2017-05-15 16:25:38 +0200
commit87b3b74a107c616992ae9f66b52efbe8bbe567c4 (patch)
tree8f502993f84a39f14d2e1e96ef8500204d39a026 /bin/reproducible_scheduler.py
parentc3e1f112f8bc47b526ef78b62bd3a583d9e26ac5 (diff)
downloadjenkins.debian.net-87b3b74a107c616992ae9f66b52efbe8bbe567c4.tar.xz
reproducible debian: scheduler: ignore packages with Extra-Source-Only:yes
Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_scheduler.py')
-rwxr-xr-xbin/reproducible_scheduler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index e3819cb9..6ef28ab9 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -250,6 +250,10 @@ def update_sources_db(suite, arch, sources):
for src in deb822.Sources.iter_paragraphs(sources.split('\n')):
pkg = (src['Package'], src['Version'], suite, arch)
+ if 'Extra-Source-Only' in src and src['Extra-Source-Only'] == 'yes':
+ log.debug('Ignoring {} due to Extra-Source-Only'.format(pkg))
+ continue
+
# only keep the most recent version of a src for each package/suite/arch
key = src['Package'] + suite + arch
if key in newest_version: