From f91a628f041a238d3298ad6fa65f3b664cecd149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 15 Dec 2005 01:31:13 +0000 Subject: [PATCH] * do not init comar if not necessary. IMO it is not necessary at all for postinstall scripts but anyway (^_^) --- pisi/atomicoperations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index 67b21cc1..26b13637 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -78,7 +78,7 @@ class Install(AtomicOperation): self.check_reinstall() self.extract_install() self.store_pisi_files() - if ctx.comar: + if self.metadata.package.providesComar and ctx.comar: import pisi.comariface as comariface self.register_comar_scripts() ctx.ui.notify(pisi.ui.configuring, package = self.pkginfo, files = self.files) @@ -106,7 +106,7 @@ class Install(AtomicOperation): #TODO: IS THERE ENOUGH SPACE? # what to do if / is split into /usr, /var, etc. # check comar - if ctx.comar: + if self.metadata.package.providesComar and ctx.comar: import pisi.comariface as comariface com = comariface.make_com()