From: Holger Levsen Date: Sun, 18 Sep 2011 15:33:08 +0000 (+0200) Subject: create /etc/kernel-pkg.conf X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=9781f9529012930c7b80233108047afe14e3a300;p=profitbricks%2Fjenkins-build-scripts.git create /etc/kernel-pkg.conf --- 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-'):