ikinci parametre appname olmalıymış. Gürer dedi, o yüzden yani...
This commit is contained in:
+3
-2
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user