From: Holger Levsen Date: Wed, 19 Oct 2011 15:35:39 +0000 (+0200) Subject: modify overlay templates so that PB_FLAVOUR is replaced as it should X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=a61c140a0d4f6b4eeb5a91bb4a521bedd704b557;p=profitbricks%2Fjenkins-build-scripts.git modify overlay templates so that PB_FLAVOUR is replaced as it should --- diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index e03932c..98fd6ef 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -213,6 +213,9 @@ def build_kernel(flavour, revision, overlay_dir, parallel_jobs='auto', distcc=Fa else: parallel_jobs = int(parallel_jobs) + # modify overlay-dir/Control on the fly + os.system("sed -i -s 's#PB_FLAVOUR#%s#' %s/Control" % (flavour, overlay_dir)) + cmd = [MAKE_KPKG, '-j', '%s' %(parallel_jobs), '--arch', '%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot', '--append-to-version', '-%s' %(flavour),