Update app.py

This commit is contained in:
abeudin 2014-12-13 16:32:26 +01:00
parent 5339a28160
commit 805ceb79be

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 and url == None:
if not app and (not url or file):
app = os.listdir(apps_setting_path)
elif not isinstance(app, list):
app = [ app ]