From 9ff109dfe92bc01036ae13635502bdcd15f71eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 14 Jul 2005 14:05:35 +0000 Subject: [PATCH] =?UTF-8?q?remove=20script=20=C5=9Feysi=20de=20olsun...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO | 6 +++--- pisi/comariface.py | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index ce8fb235..c9fe5cf8 100644 --- a/TODO +++ b/TODO @@ -80,9 +80,9 @@ Legend: - comar OM information (Provides) - easy package preparation / convert ebuild to pisi - - COMAR interface - ? what do we need to specify in a package? (Provides only?) - - package install: register config script + / COMAR interface + + what do we need to specify in a package. + / package install: register config script - package remove: unregister config script - internet installation / support URI's whereever a filename is supported diff --git a/pisi/comariface.py b/pisi/comariface.py index 1bf0b1ed..651c42a6 100644 --- a/pisi/comariface.py +++ b/pisi/comariface.py @@ -11,6 +11,14 @@ def registerScript(om, appname, scriptPath): s.close() return True +def removeScript(appname): + s = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM) + s.connect("/tmp/comar") + cmd = "-" + appname + '\n' + s.send(cmd) + s.close() + return True + def call(om): s = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM) s.connect("/tmp/comar")