From 5d94b16b204874141a1bea0d2e3192765cc2cdc9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 15 Sep 2011 16:50:11 +0200 Subject: [PATCH] run 'm-a update' before running make-kpkg --- kernel_inpbuilder.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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') -- 2.39.5