diff --git a/pisi/context.py b/pisi/context.py index 1eef4fe8..0a2f1b9f 100644 --- a/pisi/context.py +++ b/pisi/context.py @@ -29,7 +29,7 @@ ui = None # not now installdb = None repodb = None -comard = None +comar = None #def register(_impl): # """ Register a UI implementation""" diff --git a/pisi/install.py b/pisi/install.py index 710300e6..98101529 100644 --- a/pisi/install.py +++ b/pisi/install.py @@ -186,8 +186,6 @@ class Installer: def register_comar_scripts(self): "register COMAR scripts" - com = ctx.comard - for pcomar in self.metadata.package.providesComar: scriptPath = os.path.join(self.package.comar_dir(),pcomar.script) import pisi.comariface diff --git a/pisi/operations.py b/pisi/operations.py index af5f1dd0..a9bf3a4d 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -46,7 +46,7 @@ def remove_file(fileinfo): ctx.ui.warning(_('Not removing non-file, non-link %s') % fpath) def run_preremove(package_name): - if ctx.comard: + if ctx.comar: import pisi.comariface as comariface comariface.run_preremove(package_name) else: