def build(self, packagedb_params={}, **kwargs): self.config.build_targets = ['install', 'test'] for k in kwargs: setattr(self.config, k, kwargs[k]) self.config.update_build_targets() if not self.buildscript or packagedb_params: self.buildscript = mock.BuildScript(self.config, self.modules) self.buildscript.packagedb = mock.PackageDB(**packagedb_params) else: packagedb = self.buildscript.packagedb self.buildscript = mock.BuildScript(self.config, self.modules) self.buildscript.packagedb = packagedb self.buildscript.build() return self.buildscript.actions
def build(self, packagedb_params = {}, **kwargs): self.config.build_targets = ['install', 'test'] for k in kwargs: setattr(self.config, k, kwargs[k]) self.config.update_build_targets() if (self.packagedb is None) or (len(packagedb_params) > 0): self.packagedb = mock.PackageDB(**packagedb_params) self.moduleset = jhbuild.moduleset.ModuleSet(self.config, db=self.packagedb) self.buildscript = mock.BuildScript(self.config, self.modules, self.moduleset) self.buildscript.build() return self.buildscript.actions