]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
modify overlay templates so that PB_FLAVOUR is replaced as it should
authorHolger Levsen <holger@layer-acht.org>
Wed, 19 Oct 2011 15:35:39 +0000 (17:35 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 19 Oct 2011 15:35:39 +0000 (17:35 +0200)
kernel_inpbuilder.py

index e03932c268e85b878fd62ed3840625f52937673c..98fd6ef9b9f8ad912d918d35e3ccb48f7e35aadf 100644 (file)
@@ -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),