Kaydet (Commit) 2ac8bc88 authored tarafından Eray Özkural's avatar Eray Özkural

* fix: clear pending state properly in database (thanks to caglar for showing me…

* fix: clear pending state properly in database (thanks to caglar for showing me this, i've forgotten it)
üst 35bf19d0
......@@ -174,6 +174,7 @@ def configure_pending():
import pisi.comariface as comariface
for x in order:
comariface.run_postinstall(x)
ctx.installdb.clear_pending(x)
except ImportError:
raise Error(_("COMAR: comard not fully installed"))
......
......@@ -148,6 +148,13 @@ class InstallDB:
self.d[pkg] = InstallInfo(state, version, release, build, distro)
def clear_pending(self, pkg):
pkg = str(pkg)
info = self.d[pkg]
assert info.state == 'ip'
info.state = 'i'
self.d[pkg] = info
def remove(self, pkg):
pkg = str(pkg)
info = self.d[pkg]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment