From bda5fb3ea78901579b62727dfd489044b70d4549 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 19 Oct 2011 16:41:59 +0200 Subject: [PATCH] make more robust --- kernel_inpbuilder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 77405d3..92c19d6 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -217,7 +217,7 @@ def build_kernel(flavour, revision, overlay_dir, parallel_jobs='auto', distcc=Fa '%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot', '--append-to-version', '-%s' %(flavour), '--initrd', '--arch_in_name', - '--overlay-dir' % overlay_dir, + '--overlay-dir' % (overlay_dir), ] # add targets cmd += [ 'kernel_debug', 'kernel_image', 'kernel_source', 'modules' ] @@ -385,7 +385,7 @@ if __name__ == '__main__': logger.error('No revision given') exit(ERROR) - OVERLAY_DIR = options.overlay_dir + OVERLAY_DIR = options.overlay_dir or '/usr/share/kernel-package' GIT_REPO_NAME = os.path.basename(GIT_REPO_PATH) GIT_REMOTE_BRANCH_NAME = os.path.join('origin', '%s' %(GIT_BRANCH_NAME)) -- 2.39.5