From 9781f9529012930c7b80233108047afe14e3a300 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 18 Sep 2011 17:33:08 +0200 Subject: [PATCH] create /etc/kernel-pkg.conf --- kernel_inpbuilder.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 123705c..5e34400 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -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-'): -- 2.39.5