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),
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-'):