seçeneğin ismi --postpone yerine --postpone-postinstall yapıldı, kısa hali çıkartıldı, bunu illa isteyen uzun uzun yazsın diye karar verdik :)
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ def package_graph(A, ignore_installed = False):
|
||||
B = Bp
|
||||
return G_f
|
||||
|
||||
def postpone(package):
|
||||
def postpone_postinstall(package):
|
||||
try:
|
||||
import pisi.comariface as comariface
|
||||
comariface.register(package)
|
||||
|
||||
@@ -84,7 +84,7 @@ class Install(AtomicOperation):
|
||||
if ctx.comar:
|
||||
import pisi.comariface as comariface
|
||||
self.register_comar_scripts()
|
||||
if not ctx.config.options.postpone:
|
||||
if not ctx.config.options.postpone_postinstall:
|
||||
comariface.run_postinstall(self.pkginfo.name)
|
||||
self.update_databases()
|
||||
self.update_environment()
|
||||
|
||||
@@ -336,7 +336,7 @@ 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",
|
||||
p.add_option("", "--postpone-postinstall", action="store_true",
|
||||
default=False, help=_("Postpone postinstall script"))
|
||||
ignoredep_opt(self)
|
||||
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ class InstallDB:
|
||||
pkg = str(pkg)
|
||||
if self.is_installed(pkg):
|
||||
raise InstallDBError(_("Already installed"))
|
||||
if ctx.config.get_option('postpone'):
|
||||
if ctx.config.get_option('postpone-postinstall'):
|
||||
state = 'ip'
|
||||
self.dp[pkg] = True
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user