Pass buildDepends to atuo-debuild
authorRalf Jung <post@ralfj.de>
Fri, 27 Jul 2012 13:05:30 +0000 (15:05 +0200)
committerRalf Jung <ralfjung-e@gmx.de>
Fri, 27 Jul 2012 13:05:30 +0000 (15:05 +0200)
build_system.py

index 79a89c30801b7b62a557fbe9ee8177e22b186a6e..a46e6e8adc92e4c7001ae16e71f89039f41d1031 100644 (file)
@@ -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