]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
create /etc/kernel-pkg.conf
authorHolger Levsen <holger@layer-acht.org>
Sun, 18 Sep 2011 15:33:08 +0000 (17:33 +0200)
committerHolger Levsen <holger@layer-acht.org>
Sun, 18 Sep 2011 15:33:08 +0000 (17:33 +0200)
kernel_inpbuilder.py

index 123705ccf4011b74e2b87389007e560c84872b04..5e344003b2e04c89a4aa7c100e9e3814b887d0cf 100644 (file)
@@ -202,6 +202,8 @@ def build_kernel(version, revision, parallel_jobs='auto', distcc=False):
     else:
         parallel_jobs = int(parallel_jobs)
 
+    create_file('/etc/kernel-pkg.conf', 'maintainer := Profitbricks GmbH\nemail := %s\npriority := Low\ndebian = $(version)-%s' % (GIT_COMMITTER_EMAIL, revision))
+
     cmd = [MAKE_KPKG, '-j', '%s' %(parallel_jobs), '--arch',
             '%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot',
             '--append-to-version', '-%s' %(version),
@@ -241,6 +243,15 @@ def read_file(path):
         fh.close()
         return result
 
+def create_file(path,data):
+    try:
+        fh = open(path, 'w', 1)
+        fh.write(data)
+        fh.close()
+        return True
+    except:
+        raise
+
 def add_local_version_to_config(kernel_build_revision):
     # don't put the branch names into the packages names
     if GIT_BRANCH_NAME.startswith('master-'):