]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix typo
authorHolger Levsen <holger@layer-acht.org>
Wed, 19 Oct 2011 14:38:44 +0000 (16:38 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 19 Oct 2011 14:38:44 +0000 (16:38 +0200)
kernel_inpbuilder.py

index 5d1d1487390dfc42e34bb7b1cc1135777b3f1427..77405d327faf603b2cbff353c1abee790090164f 100644 (file)
@@ -131,7 +131,7 @@ def getopts():
 
     parser.add_option(
             '--overlay-dir',
-            dest='overlay-dir',
+            dest='overlay_dir',
             default=None,
             metavar='OVERLAY_DIR',
             help='Set the overlay-dir for make-kpkg Default: %default'
@@ -385,6 +385,8 @@ if __name__ == '__main__':
         logger.error('No revision given')
         exit(ERROR)
 
+    OVERLAY_DIR = options.overlay_dir
+
     GIT_REPO_NAME = os.path.basename(GIT_REPO_PATH)
     GIT_REMOTE_BRANCH_NAME = os.path.join('origin', '%s' %(GIT_BRANCH_NAME))
     GIT_TARGET_WORKSPACE = os.path.join(
@@ -423,7 +425,7 @@ if __name__ == '__main__':
             logger.error('Error during installation of extra kernel modules')
             exit(ERROR)
 
-    if not build_kernel(kernel_flavour, REVISION, options.overlay_dir):
+    if not build_kernel(kernel_flavour, REVISION, OVERLAY_DIR):
         exit(ERROR)
     else:
         ftp = FTP(