- comariface'e küçük bir düzenleme
- constants'a comar_dir eklendi. - buildhelper derlerken comar betiklerini de indirsin. (henüz çomar betikleri pisi paketi içerisine dahil edilmiyor. o da olacak...)
This commit is contained in:
@@ -43,6 +43,15 @@ class RemoteSource(object):
|
|||||||
self.url.uri = patchuri
|
self.url.uri = patchuri
|
||||||
self.fetch(const.files_dir)
|
self.fetch(const.files_dir)
|
||||||
|
|
||||||
|
def fetch_comarfiles(self):
|
||||||
|
spec = self.ctx.spec
|
||||||
|
for package in spec.packages:
|
||||||
|
for pcomar in package.providesComar:
|
||||||
|
comaruri = join(self.location,
|
||||||
|
const.comar_dir, pcomar.script)
|
||||||
|
self.url.uri = comaruri
|
||||||
|
self.fetch(const.comar_dir)
|
||||||
|
|
||||||
def fetch_additionalFiles(self):
|
def fetch_additionalFiles(self):
|
||||||
spec = self.ctx.spec
|
spec = self.ctx.spec
|
||||||
for afile in spec.source.additionalFiles:
|
for afile in spec.source.additionalFiles:
|
||||||
|
|||||||
+7
-12
@@ -2,25 +2,20 @@
|
|||||||
|
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
def registerScript(om, appname, scriptPath):
|
def sendCommand(cmd, blocking=False):
|
||||||
s = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM)
|
s = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM)
|
||||||
s.connect("/tmp/comar")
|
s.connect("/tmp/comar")
|
||||||
cmd = '+' + om + ' ' + appname + ' ' +scriptPath + '\n'
|
|
||||||
s.send(cmd)
|
s.send(cmd)
|
||||||
s.close()
|
s.close()
|
||||||
return True
|
|
||||||
|
def registerScript(om, appname, scriptPath):
|
||||||
|
cmd = '+' + om + ' ' + appname + ' ' +scriptPath + '\n'
|
||||||
|
sendCommand(cmd)
|
||||||
|
|
||||||
def removeScript(appname):
|
def removeScript(appname):
|
||||||
s = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM)
|
|
||||||
s.connect("/tmp/comar")
|
|
||||||
cmd = "-" + appname + '\n'
|
cmd = "-" + appname + '\n'
|
||||||
s.send(cmd)
|
sendCommand(cmd)
|
||||||
s.close()
|
|
||||||
return True
|
|
||||||
|
|
||||||
def call(om):
|
def call(om):
|
||||||
s = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM)
|
|
||||||
s.connect("/tmp/comar")
|
|
||||||
cmd = '$' + om + '\n'
|
cmd = '$' + om + '\n'
|
||||||
s.send(cmd)
|
sendCommand(cmd)
|
||||||
return True
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class Constants:
|
|||||||
# file/directory names
|
# file/directory names
|
||||||
self.__c.actions_file = "actions.py"
|
self.__c.actions_file = "actions.py"
|
||||||
self.__c.files_dir = "files"
|
self.__c.files_dir = "files"
|
||||||
|
self.__c.comar_dir = "comar"
|
||||||
self.__c.files_xml = "files.xml"
|
self.__c.files_xml = "files.xml"
|
||||||
self.__c.metadata_xml = "metadata.xml"
|
self.__c.metadata_xml = "metadata.xml"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user