[Qa-jenkins-scm] [jenkins.debian.net] 04/04: reproducible: remote_scheduler: resort the CLI flags and improve the help

Holger Levsen holger at moszumanska.debian.org
Fri Aug 7 12:45:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 8a74cf604ff668cb05ec3c98d3bf7b3836e5a66c
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Wed Aug 5 14:09:57 2015 +0000

    reproducible: remote_scheduler: resort the CLI flags and improve the help
---
 bin/reproducible_remote_scheduler.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index fb7a01b..2e5f7a9 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -19,22 +19,17 @@ parser = argparse.ArgumentParser(
            ' (namely two or more -r/-i/-t/-b) means "all packages with that'
            ' issue AND that status AND that date". Blacklisted package '
            "can't be selected by a filter, but needs to be explitely listed"
-           'in the package list.')
-group = parser.add_mutually_exclusive_group()
+           ' in the package list.')
 parser.add_argument('--dry-run', action='store_true')
-group.add_argument('-k', '--keep-artifacts',  action='store_true',
+parser.add_argument('-k', '--keep-artifacts',  action='store_true',
                    help='Save artifacts (for further offline study)')
-group.add_argument('-n', '--notify', action='store_true',
+parser.add_argument('-n', '--notify', action='store_true',
                    help='Notify the channel when the build finishes')
 parser.add_argument('--noisy', action='store_true', help='Also notify when ' +
-                    'the build starts, linking to the build url. This disables -n.')
+                    'the build starts, linking to the build url.')
 parser.add_argument('-m', '--message', default='', nargs='+',
                     help='A text to be sent to the IRC channel when notifying' +
                     ' about the scheduling')
-parser.add_argument('-s', '--suite', required=True,
-                    help='Specify the suite to schedule in')
-parser.add_argument('-a', '--architecture', required=False, default='unstable',
-                    help='Specify the architecture to schedule for')
 parser.add_argument('-r', '--status', required=False,
                     help='Schedule all package with this status')
 parser.add_argument('-i', '--issue', required=False,
@@ -43,6 +38,11 @@ parser.add_argument('-t', '--after', required=False,
                     help='Schedule all packages built after this date')
 parser.add_argument('-b', '--before', required=False,
                     help='Schedule all packages built before this date')
+parser.add_argument('-a', '--architecture', required=False, default='amd64',
+                    help='Specify the architecture to schedule for ' +
+                    '(defaults to amd64)')
+parser.add_argument('-s', '--suite', required=True,
+                    help='Specify the suite to schedule in')
 parser.add_argument('packages', metavar='package', nargs='*',
                     help='list of packages to reschedule')
 scheduling_args = parser.parse_known_args()[0]

-- 
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