* update comar interface

* up the antenna a bit
* w00t
This commit is contained in:
Eray Özkural
2005-09-20 14:02:11 +00:00
parent 6e97fe51c6
commit fc52662d61
6 changed files with 20 additions and 15 deletions
+9 -7
View File
@@ -1,16 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM "Project-3.8.dtd">
<!-- Project file for project pisi -->
<!-- Saved: 2005-09-02, 17:09:47 -->
<!-- Copyright (C) 2005 PiSi Development Team, pisi@uludag.org.tr -->
<!-- Saved: 2005-09-20, 16:43:07 -->
<!-- Copyright (C) 2005 PiSi Development Team, -->
<Project version="3.8">
<ProgLanguage mixed="0">Python</ProgLanguage>
<UIType>Qt</UIType>
<Description>The package management software of Pardus distribution.
</Description>
<VersIon>0.2</VersIon>
<Author>PiSi Development Team</Author>
<EmaIl>pisi@uludag.org.tr</EmaIl>
<EmaIl></EmaIl>
<Sources>
<Source>
<Dir>tools</Dir>
@@ -311,6 +310,9 @@
<Dir>pisi</Dir>
<Name>specfilenew.py</Name>
</Source>
<Source>
<Name>TODO</Name>
</Source>
</Sources>
<Forms>
</Forms>
@@ -349,9 +351,9 @@
</Vcs>
<FiletypeAssociations>
<FiletypeAssociation pattern="*.ui.h" type="FORMS" />
<FiletypeAssociation pattern="*.ui" type="FORMS" />
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
<FiletypeAssociation pattern="*.py" type="SOURCES" />
<FiletypeAssociation pattern="*.ptl" type="SOURCES" />
<FiletypeAssociation pattern="*.idl" type="INTERFACES" />
<FiletypeAssociation pattern="*.ui" type="FORMS" />
<FiletypeAssociation pattern="*.py" type="SOURCES" />
</FiletypeAssociations>
</Project>
+3 -3
View File
@@ -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()
+2
View File
@@ -29,6 +29,8 @@ ui = None # not now
installdb = None
repodb = None
comar = None
#def register(_impl):
# """ Register a UI implementation"""
# ui = _impl
-1
View File
@@ -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):
+3 -4
View File
@@ -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"""
+3
View File
@@ -2,8 +2,11 @@
<A href="http://www.cs.bilkent.edu.tr/~erayo">
<Name>Eray Ozkural</Name>
<Number>868</Number>
<Description>Lazy Tin</Description>
<Description xml:lang="tr">Tembel Teneke</Description>
<Projects>
<Project>pisi</Project>
<Project>noatun</Project>
<Project>kdevelop</Project>
</Projects>
</A>