eğer paket bir şekilde (mesela bypass-safety ile) kaldırılmış ama post-install'u çalıştırılmamışsa çalıştırmaya çalışma ve pending listesinden sil
This commit is contained in:
@@ -176,6 +176,7 @@ def configure_pending():
|
|||||||
try:
|
try:
|
||||||
import pisi.comariface as comariface
|
import pisi.comariface as comariface
|
||||||
for x in order:
|
for x in order:
|
||||||
|
if ctx.installdb.is_installed(x):
|
||||||
pkginfo = A[x]
|
pkginfo = A[x]
|
||||||
pkgname = util.package_name(x, pkginfo.version,
|
pkgname = util.package_name(x, pkginfo.version,
|
||||||
pkginfo.release,
|
pkginfo.release,
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ class InstallDB:
|
|||||||
def clear_pending(self, pkg):
|
def clear_pending(self, pkg):
|
||||||
pkg = str(pkg)
|
pkg = str(pkg)
|
||||||
info = self.d[pkg]
|
info = self.d[pkg]
|
||||||
|
if self.is_installed(pkg):
|
||||||
assert info.state == 'ip'
|
assert info.state == 'ip'
|
||||||
info.state = 'i'
|
info.state = 'i'
|
||||||
self.d[pkg] = info
|
self.d[pkg] = info
|
||||||
|
|||||||
Reference in New Issue
Block a user