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")