[fix] upgrade without app and argument -u

This commit is contained in:
abeudin 2014-12-13 14:26:54 +01:00
parent 02a701bcb6
commit 5339a28160

2
app.py
View file

@ -284,7 +284,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
upgraded_apps = []
# If no app is specified, upgrade all apps
if not app:
if not app and url == None:
app = os.listdir(apps_setting_path)
elif not isinstance(app, list):
app = [ app ]