diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index 33ed29553..5a2967a91 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -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 diff --git a/plugins/php/index.py b/plugins/php/index.py index 915d9915b..be3b7f287 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -939,8 +939,7 @@ def libConfCommon(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: