* fix: clear pending state properly in database (thanks to caglar for showing me this, i've forgotten it)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user