From 3532cd795964bfc5e39e29d0c5caba4400156704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Thu, 14 Jul 2005 13:39:46 +0000 Subject: [PATCH] =?UTF-8?q?ikinci=20parametre=20appname=20olmal=C4=B1ym?= =?UTF-8?q?=C4=B1=C5=9F.=20G=C3=BCrer=20dedi,=20o=20y=C3=BCzden=20yani...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/comariface.py | 5 +++-- pisi/install.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pisi/comariface.py b/pisi/comariface.py index 68e91be3..1bf0b1ed 100644 --- a/pisi/comariface.py +++ b/pisi/comariface.py @@ -2,10 +2,11 @@ import socket -def registerScript(om, scriptPath): +def registerScript(om, appname, scriptPath): s = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM) s.connect("/tmp/comar") - cmd = '+' + om + ' ' + scriptPath + '\n' + cmd = '+' + om + ' ' + appname + ' ' +scriptPath + '\n' + print cmd s.send(cmd) s.close() return True diff --git a/pisi/install.py b/pisi/install.py index 809f0e05..6c7ad145 100644 --- a/pisi/install.py +++ b/pisi/install.py @@ -127,7 +127,8 @@ def install(package_fn): # something like the below? # import comariface # for comar int metadata.package.providesComar: - # comariface.register(comar.om, comar.script) + # scriptPath = .... + comar.script + # comariface.register(comar.om, metadata.package.name, scriptPath) # update databases