* fix for odd systems that don't have comar installed at all

This commit is contained in:
Eray Özkural
2005-10-09 22:33:20 +00:00
parent cc39d868b8
commit eb90adef9d
+1 -1
View File
@@ -22,7 +22,6 @@ import pisi.context as ctx
import pisi.util as util import pisi.util as util
import pisi.packagedb as packagedb import pisi.packagedb as packagedb
from pisi.uri import URI from pisi.uri import URI
import pisi.comariface as comariface
# single package operations # single package operations
@@ -48,6 +47,7 @@ def remove_file(fileinfo):
def run_preremove(package_name): def run_preremove(package_name):
if ctx.comard: if ctx.comard:
import pisi.comariface as comariface
comariface.run_preremove(package_name) comariface.run_preremove(package_name)
else: else:
# TODO: store this somewhere # TODO: store this somewhere