def proc(txn): if self.is_installed(pkg, txn): raise InstallDBError(_("Already installed")) if ctx.config.get_option('ignore_comar'): state = 'ip' self.dp.put(pkg, True, txn) else: state = 'i' if not rebuild: import time ctime = time.localtime() else: files_xml = self.files_name(pkg, version, release) ctime = util.creation_time(files_xml) self.d.put(pkg, InstallInfo(state, version, release, build, distro, ctime), txn)
def proc(txn): if self.is_installed(pkg, txn): raise InstallDBError(_("Already installed")) if config_later: state = 'ip' self.dp.put(pkg, True, txn) else: state = 'i' # FIXME: it might be more appropriate to pass date # as an argument, or installation data afterwards # to do this -- exa if not rebuild: import time ctime = time.localtime() else: files_xml = self.files_name(pkg, version, release) ctime = util.creation_time(files_xml) self.d.put(pkg, InstallInfo(state, version, release, build, distro, ctime), txn)
def proc(txn): if self.is_installed(pkg, txn): raise InstallDBError(_("Already installed")) if config_later: state = 'ip' self.dp.put(pkg, True, txn) else: state = 'i' # FIXME: it might be more appropriate to pass date # as an argument, or installation data afterwards # to do this -- exa if not rebuild: import time ctime = time.localtime() else: files_xml = self.files_name(pkg, version, release) ctime = util.creation_time(files_xml) self.d.put( pkg, InstallInfo(state, version, release, build, distro, ctime), txn)