[Qa-jenkins-scm] [jenkins.debian.net] 02/04: reproducible: common.py: do not fail when non-recognized option are passed

Holger Levsen holger at moszumanska.debian.org
Sun May 3 09:21:22 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 2d7be9a9bce5f3aef66d474149684e191156c97c
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sun May 3 10:20:37 2015 +0200

    reproducible: common.py: do not fail when non-recognized option are passed
---
 bin/reproducible_common.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index aa968d9..cea16cf 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -60,7 +60,7 @@ parser = argparse.ArgumentParser()
 group = parser.add_mutually_exclusive_group()
 group.add_argument("-d", "--debug", action="store_true")
 group.add_argument("-q", "--quiet", action="store_true")
-args = parser.parse_args()
+args, unknown_args = parser.parse_known_args()
 log_level = logging.INFO
 if args.debug or DEBUG:
     log_level = logging.DEBUG

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