[enh] display which app is being upgraded

This commit is contained in:
Laurent Peuch 2018-01-04 18:02:58 +01:00
parent 542528ab05
commit a079e3f5ee
2 changed files with 2 additions and 0 deletions

View file

@ -34,6 +34,7 @@
"app_sources_fetch_failed": "Unable to fetch sources files", "app_sources_fetch_failed": "Unable to fetch sources files",
"app_unknown": "Unknown app", "app_unknown": "Unknown app",
"app_unsupported_remote_type": "Unsupported remote type used for the app", "app_unsupported_remote_type": "Unsupported remote type used for the app",
"app_upgrade_app_name": "Upgrading app {app}...",
"app_upgrade_failed": "Unable to upgrade {app:s}", "app_upgrade_failed": "Unable to upgrade {app:s}",
"app_upgrade_some_app_failed": "Unable to upgrade some applications", "app_upgrade_some_app_failed": "Unable to upgrade some applications",
"app_upgraded": "{app:s} has been upgraded", "app_upgraded": "{app:s} has been upgraded",

View file

@ -555,6 +555,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
logger.info("Upgrading apps %s", ", ".join(app)) logger.info("Upgrading apps %s", ", ".join(app))
for app_instance_name in apps: for app_instance_name in apps:
logger.warning(m18n.n('app_upgrade_app_name', app=app_instance_name))
installed = _is_installed(app_instance_name) installed = _is_installed(app_instance_name)
if not installed: if not installed:
raise MoulinetteError(errno.ENOPKG, raise MoulinetteError(errno.ENOPKG,