ikinci parametre appname olmalıymış. Gürer dedi, o yüzden yani...

This commit is contained in:
Barış Metin
2005-07-14 13:39:46 +00:00
parent e61c98a2c7
commit 3532cd7959
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -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
+2 -1
View File
@@ -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