diff options
author | Mattia Rizzolo <mattia@debian.org> | 2017-05-15 12:03:41 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-05-15 18:54:08 +0200 |
commit | 9b311251e4e530ca390bae5aae52e4292a9b8c19 (patch) | |
tree | 6406924b19a4a1e5d15436d6222e1b4cd3d2b129 | |
parent | fd8abc10e8fe122ba548fda8c58b8beab8835fe9 (diff) | |
download | jenkins.debian.net-9b311251e4e530ca390bae5aae52e4292a9b8c19.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>
-rwxr-xr-x | bin/reproducible_scheduler.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index 4e3f2dcc..fb6972ad 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: |