From: Ralf Jung Date: Fri, 27 Jul 2012 13:05:30 +0000 (+0200) Subject: Pass buildDepends to atuo-debuild X-Git-Url: https://git.ralfj.de/mass-build.git/commitdiff_plain/9c80fba35dbdb845f4b53515a73b52b27d5ee660?ds=inline Pass buildDepends to atuo-debuild --- diff --git a/build_system.py b/build_system.py index 79a89c3..a46e6e8 100644 --- a/build_system.py +++ b/build_system.py @@ -50,11 +50,16 @@ try: 'name': config['debName'], 'email': config['debEMail'], } + self.copyFromModule(module, 'buildDepends') if buildSystem == 'cmakeParameters': - self.autoDebuildConfig['cmakeParameters'] = module.get('cmakeParameters', []) + self.copyFromModule(module, 'cmakeParameters') self.vcs = vcs self.configured = False # make sure configure is called before build/install + def copyFromModule(self, module, name): + if name in module: + self.autoDebuildConfig[name] = module[name] + def configure(self, force=False): # force is ignored self.autoDebuildConfig['version'] = self.vcs.version() # by now, data has been fetched, so this is possible self.vcs.ignore('/debian/') # make sure the debian folder is ignored