[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible: remote_scheduler: only consider "unknown_args", i.e. the arguments that the common.py script doesn't know about and therefor ignored
Mattia Rizzolo
mattia at debian.org
Fri Dec 29 15:25:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit aa775bac50266d3321b611dbaa0d284dfe49ac7a
Author: Mattia Rizzolo <mattia at debian.org>
Date: Fri Dec 29 16:24:06 2017 +0100
reproducible: remote_scheduler: only consider "unknown_args", i.e. the arguments that the common.py script doesn't know about and therefor ignored
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_remote_scheduler.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index b871d1a..e1183b6 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -20,12 +20,11 @@ from reproducible_common import (
# parsing the command line, & debugging the mystery via edit-compile-h01ger-run
# detours is not practical.
SUITES, ARCHS,
- bcolors,
+ bcolors, log,
query_db, db_table, sql, conn_db,
datetime, timedelta,
- irc_msg,
+ irc_msg, unknown_args
)
-from reproducible_common import log
def packages_matching_criteria(arch, suite, criteria):
"Return a list of packages in (SUITE, ARCH) matching the given CRITERIA."
@@ -95,7 +94,9 @@ def parse_args():
help="Specify the suites to schedule in (space or comma separated). Default: 'unstable'.")
parser.add_argument('packages', metavar='package', nargs='*',
help='Space seperated list of packages to reschedule.')
- scheduling_args = parser.parse_known_args()[0]
+ # only consider "unknown_args", i.e. the arguments that the common.py script
+ # doesn't know about and therefor ignored.
+ scheduling_args = parser.parse_known_args(unknown_args)[0]
if scheduling_args.null:
scheduling_args = parser.parse_known_args(sys.stdin.read().split('\0'))[0]
scheduling_args.packages = [x for x in scheduling_args.packages if x]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list