From: Holger Levsen Date: Wed, 19 Oct 2011 14:38:44 +0000 (+0200) Subject: fix typo X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=0e8a6e2d87cd6d440951363c88dc39b4617e04a5;p=profitbricks%2Fjenkins-build-scripts.git fix typo --- diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 5d1d148..77405d3 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -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(