* fix: clear pending state properly in database (thanks to caglar for showing me this, i've forgotten it)

This commit is contained in:
Eray Özkural
2005-10-25 11:41:09 +00:00
parent 35bf19d0fe
commit 2ac8bc88b2
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -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"))
+7
View File
@@ -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]