* fix: set config_later to True in case there are any comar

scripts to configure. (hopefully no typo!)
This commit is contained in:
Eray Özkural
2005-12-25 00:16:43 +00:00
parent 7272282d99
commit 34af72d66a
2 changed files with 9 additions and 3 deletions
+1
View File
@@ -208,6 +208,7 @@ def configure_pending():
comariface.register(pcomar, x, scriptPath) comariface.register(pcomar, x, scriptPath)
# FIXME: we need a full package info here! # FIXME: we need a full package info here!
# Eray, please fix this # Eray, please fix this
# your wish is a command, darling -- eray
pkginfo.name = x pkginfo.name = x
ctx.ui.notify(pisi.ui.configuring, package = pkginfo, files = None) ctx.ui.notify(pisi.ui.configuring, package = pkginfo, files = None)
comariface.run_postinstall(x) comariface.run_postinstall(x)
+8 -3
View File
@@ -102,12 +102,17 @@ class Install(AtomicOperation):
self.check_reinstall() self.check_reinstall()
self.extract_install() self.extract_install()
self.store_pisi_files() self.store_pisi_files()
if self.metadata.package.providesComar and ctx.comar:
import pisi.comariface as comariface
self.register_comar_scripts()
self.config_later = False self.config_later = False
if self.metadata.package.providesComar: if self.metadata.package.providesComar:
if ctx.comar:
import pisi.comariface as comariface
self.register_comar_scripts()
else:
self.config_later = True # configure-pending will register scripts later
if 'System.Package' in [x.om for x in self.metadata.package.providesComar]:
if ctx.comar: if ctx.comar:
ctx.ui.notify(pisi.ui.configuring, package = self.pkginfo, files = self.files) ctx.ui.notify(pisi.ui.configuring, package = self.pkginfo, files = self.files)
comariface.run_postinstall(self.pkginfo.name) comariface.run_postinstall(self.pkginfo.name)