diff --git a/pisi.e3p b/pisi.e3p
index f063fae5..c9556044 100644
--- a/pisi.e3p
+++ b/pisi.e3p
@@ -1,16 +1,15 @@
-
-
+
+
Python
Qt
The package management software of Pardus distribution.
- 0.2
PiSi Development Team
- pisi@uludag.org.tr
+
tools
@@ -311,6 +310,9 @@
pisi
specfilenew.py
+
+ TODO
+
@@ -349,9 +351,9 @@
-
-
-
+
+
+
diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py
index 6645543a..6b6bb55d 100644
--- a/pisi/cli/commands.py
+++ b/pisi/cli/commands.py
@@ -261,11 +261,11 @@ class PackageOp(Command):
def init(self):
super(PackageOp, self).init(True)
import pisi
- import pisi.comariface
if not self.options.ignore_comar:
try:
- pisi.comariface.init()
- except pisi.comariface.ComarError:
+ import comar
+ ctx.comard = comar.Link() # context
+ except comar.Error:
ctx.ui.error('Comar error encountered\n')
self.die()
diff --git a/pisi/context.py b/pisi/context.py
index 3ec733f4..0a2f1b9f 100644
--- a/pisi/context.py
+++ b/pisi/context.py
@@ -29,6 +29,8 @@ ui = None # not now
installdb = None
repodb = None
+comar = None
+
#def register(_impl):
# """ Register a UI implementation"""
# ui = _impl
diff --git a/pisi/install.py b/pisi/install.py
index 446fba98..4e4d6301 100644
--- a/pisi/install.py
+++ b/pisi/install.py
@@ -25,7 +25,6 @@ import pisi.operations as operations
from pisi.specfile import *
from pisi.package import Package
from pisi.metadata import MetaData
-from pisi.comariface import comard
#import conflicts
class InstallError(pisi.Error):
diff --git a/pisi/operations.py b/pisi/operations.py
index ca63ad0b..c5864d91 100644
--- a/pisi/operations.py
+++ b/pisi/operations.py
@@ -23,7 +23,6 @@ from pisi.uri import URI
def remove_single(package_name):
"""Remove a single package"""
- from comariface import comard
inst_packagedb = packagedb.inst_packagedb
#TODO: check dependencies
@@ -32,6 +31,9 @@ def remove_single(package_name):
if not ctx.installdb.is_installed(package_name):
raise Exception('Trying to remove nonexistent package '
+ package_name)
+ if ctx.comard:
+ ctx.comard.remove(package_name)
+ ctx.comard.call("System.Package", "preremove")
for fileinfo in ctx.installdb.files(package_name).list:
fpath = os.path.join(ctx.config.destdir, fileinfo.path)
# TODO: We have to store configuration files for futher
@@ -44,9 +46,6 @@ def remove_single(package_name):
os.unlink(fpath)
ctx.installdb.remove(package_name)
packagedb.remove_package(package_name)
- if comard:
- # FIXME: (return value)...
- comard.remove(package_name)
def install_single(pkg, upgrade = False):
"""install a single package from URI or ID"""
diff --git a/tests/a.xml b/tests/a.xml
index 375d2644..4245a7d5 100644
--- a/tests/a.xml
+++ b/tests/a.xml
@@ -2,8 +2,11 @@
Eray Ozkural
868
+ Lazy Tin
+ Tembel Teneke
pisi
noatun
+ kdevelop