|
|
|
@ -770,8 +770,7 @@ def getLibConf(version): |
|
|
|
|
phplib = json.loads(mw.readFile(libpath)) |
|
|
|
|
|
|
|
|
|
libs = [] |
|
|
|
|
tasks = mw.M('tasks').where( |
|
|
|
|
"status!=?", ('1',)).field('status,name').select() |
|
|
|
|
tasks = mw.M('tasks').where("status!=?", ('1',)).field('status,name').select() |
|
|
|
|
for lib in phplib: |
|
|
|
|
lib['task'] = '1' |
|
|
|
|
for task in tasks: |
|
|
|
@ -814,8 +813,7 @@ def uninstallLib(version): |
|
|
|
|
return data[1] |
|
|
|
|
|
|
|
|
|
name = args['name'] |
|
|
|
|
execstr = "cd " + getPluginDir() + "/versions && /bin/bash common.sh " + \ |
|
|
|
|
version + ' uninstall ' + name |
|
|
|
|
execstr = "cd " + getPluginDir() + "/versions && /bin/bash common.sh " + version + ' uninstall ' + name |
|
|
|
|
|
|
|
|
|
data = mw.execShell(execstr) |
|
|
|
|
# data[0] == '' and |
|
|
|
|