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',
cmd = [APT_GET, '-y', 'install']
cmd += extra_modules
subprocess.check_call(cmd)
+
+ cmd = ['m-a', 'unpack']
+ cmd += extra_modules
+ ret = os.system('%s' %(' '.join(cmd)))
+ if ret:
+ logger.error('%s returned with %s' %(' '.join(cmd), ret))
+ return False
+ logger.info(
+ 'module-assistant unpacked successfully.'
+ )
+
return True