]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix option parsing
authorHolger Levsen <holger@layer-acht.org>
Thu, 3 Nov 2011 15:45:05 +0000 (16:45 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 3 Nov 2011 15:45:05 +0000 (16:45 +0100)
kernel_build.py
kernel_inpbuilder.py

index b2063dc9687843f6644728a3ecb2583c8063b49e..bf5a4e3c9a43ed65039ade96c07e4545d459a4e9 100644 (file)
@@ -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=''
 
index ccb134ed42ced276b984c3ff2b9a4f83591db9e4..20a37ea5d955f0938c49b3e63f3dcd7a4afb49a5 100644 (file)
@@ -138,7 +138,7 @@ def getopts():
     )
 
     parser.add_option(
-            '--source_only',
+            '--source-only',
             dest='source_only',
             default=False,
             metavar='SOURCE_ONLY',