From: Holger Levsen Date: Thu, 3 Nov 2011 15:45:05 +0000 (+0100) Subject: fix option parsing X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=28a71012d85ae4aee417933416b7ce71bc137ca4;p=profitbricks%2Fjenkins-build-scripts.git fix option parsing --- diff --git a/kernel_build.py b/kernel_build.py index b2063dc..bf5a4e3 100644 --- a/kernel_build.py +++ b/kernel_build.py @@ -70,7 +70,7 @@ def build_kernel_with_pbuilder(revision, pbuilder_script, dist='stable'): pbuilder_script = os.path.abspath(pbuilder_script) if os.environ.get('SOURCE_BUILD'): - SOURCE_BUILD='--source-only' + SOURCE_BUILD='--source-only=True' else: SOURCE_BUILD='' diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index ccb134e..20a37ea 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -138,7 +138,7 @@ def getopts(): ) parser.add_option( - '--source_only', + '--source-only', dest='source_only', default=False, metavar='SOURCE_ONLY',