* 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
|
import pisi.comariface as comariface
|
||||||
for x in order:
|
for x in order:
|
||||||
comariface.run_postinstall(x)
|
comariface.run_postinstall(x)
|
||||||
|
ctx.installdb.clear_pending(x)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise Error(_("COMAR: comard not fully installed"))
|
raise Error(_("COMAR: comard not fully installed"))
|
||||||
|
|
||||||
|
|||||||
@@ -148,6 +148,13 @@ class InstallDB:
|
|||||||
|
|
||||||
self.d[pkg] = InstallInfo(state, version, release, build, distro)
|
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):
|
def remove(self, pkg):
|
||||||
pkg = str(pkg)
|
pkg = str(pkg)
|
||||||
info = self.d[pkg]
|
info = self.d[pkg]
|
||||||
|
|||||||
Reference in New Issue
Block a user