From: Holger Levsen Date: Thu, 15 Sep 2011 14:50:11 +0000 (+0200) Subject: run 'm-a update' before running make-kpkg X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=5d94b16b204874141a1bea0d2e3192765cc2cdc9;p=profitbricks%2Fjenkins-build-scripts.git run 'm-a update' before running make-kpkg --- diff --git a/kernel_inpbuilder.py b/kernel_inpbuilder.py index 24b308a..dee9702 100644 --- a/kernel_inpbuilder.py +++ b/kernel_inpbuilder.py @@ -202,10 +202,19 @@ def build_kernel(revision, parallel_jobs='auto', distcc=False): else: parallel_jobs = int(parallel_jobs) + cmd = ['m-a', 'update'] + ret = os.system('%s' %(' '.join(cmd))) + if ret: + logger.error('%s returned with %s' %(' '.join(cmd), ret)) + return False + logger.info( + 'module-assistant update ran successfully.' + ) + cmd = [MAKE_KPKG, '-j', '%s' %(parallel_jobs), '--arch', '%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot', '--revision', '%s' %(revision), '--initrd', '--arch_in_name', 'kernel_debug', - 'kernel_image', 'kernel_source', 'kernel_headers', 'modules_image'] + 'kernel_image', 'kernel_source', 'kernel_headers', 'modules'] logger.info('start compile process')