self.autoDebuildConfig[dstName] = src[name]
def configure(self, force=False): # force is ignored
+ if self.configured: return # do not configure twice
self.autoDebuildConfig['version'] = self.vcs.version() # by now, data has been fetched, so this is possible
if self.autoDebuildConfig['version'] is None:
raise Exception("VCS did not provide us with a proper version, please fix this")
self.configured = True
def build(self):
- if not self.configured: self.configure()
+ self.configure() # make sure we are configured (this call is idempotent)
os.chdir(self.sourceFolder)
auto_debuild.buildDebianPackage(self.autoDebuildConfig)
def install(self):
- if not self.configured: self.configure()
+ self.configure() # make sure we are configured (this call is idempotent)
os.chdir(self.sourceFolder)
subprocess.check_call(['sudo', 'dpkg', '--install'] + self.files)
except ImportError: