Kaydet (Commit) 287f9349 authored tarafından S.Çağlar Onur's avatar S.Çağlar Onur

configure-pending için postpone eklendi...

caglar@pardus ~ $ sudo pisi it net-tools-1.60-1.pisi --postpone
Yerleştirme sırası: net-tools
net-tools, versiyon 1.60, sürüm 1, inşa 0 yerleştiriliyor.
net-tools için kaldırma-öncesi betiği çalıştırılıyor.
net-tools'in COMAR betikleri kayıttan siliniyor.
Dosyalar arşivden çıkartılıyor.
files.xml saklanıyor,
metadata.xml saklanıyor
comar/interface.py saklanıyor
COMAR betiği interface.py kayıt ediliyor

caglar@pardus ~ $ sudo pisi list-pending
net-tools

caglar@pardus ~ $ sudo pisi configure-pending
digraph G {
    net_tools[ label = "net-tools(1.60,1)" ];


}
net-tools için yerleştirme-sonrası betiği çalıştırılıyor.

üst c578d4c8
......@@ -140,6 +140,12 @@ def package_graph(A, ignore_installed = False):
B = Bp
return G_f
def postpone(package):
try:
import pisi.comariface as comariface
comariface.register(package)
except ImportError:
raise Error(_("COMAR: comard not fully installed"))
def configure_pending():
# start with pending packages
......
......@@ -82,9 +82,10 @@ class Install(AtomicOperation):
self.extract_install()
self.store_pisi_files()
if ctx.comar:
self.register_comar_scripts()
import pisi.comariface as comariface
comariface.run_postinstall(self.pkginfo.name)
self.register_comar_scripts()
if not ctx.config.options.postpone:
comariface.run_postinstall(self.pkginfo.name)
self.update_databases()
self.update_environment()
......
......@@ -336,6 +336,8 @@ class PackageOp(Command):
p = self.parser
p.add_option("-B", "--ignore-comar", action="store_true",
default=False, help=_("bypass comar configuration agent"))
p.add_option("-V", "--postpone", action="store_true",
default=False, help=_("Postpone postinstall script"))
ignoredep_opt(self)
def init(self):
......
......@@ -140,7 +140,7 @@ class InstallDB:
pkg = str(pkg)
if self.is_installed(pkg):
raise InstallDBError(_("Already installed"))
if ctx.config.get_option('ignore_comar'):
if ctx.config.get_option('postpone'):
state = 'ip'
self.dp[pkg] = True
else:
......
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