From 5fba28426037fb58e82fee7bed059c3cba51fb66 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 24 Jun 2016 07:49:52 +0200 Subject: [PATCH] [enh] generate a journal for app installation --- src/yunohost/app.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 403e76cc..03c8b9d9 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -653,6 +653,7 @@ def app_install(auth, app, label=None, args=None, no_remove_on_failure=False): """ from yunohost.hook import hook_add, hook_remove, hook_exec + from yunohost.journals import Journal # Fetch or extract sources try: @@ -738,7 +739,12 @@ def app_install(auth, app, label=None, args=None, no_remove_on_failure=False): try: install_retcode = hook_exec( os.path.join(extracted_app_folder, 'scripts/install'), - args=args_list, env=env_dict, user="root") + args=args_list, env=env_dict, user="root" + journal = Journal( + ["install", app_instance_name], + "app", args=args_list, env=env_dict + ), + ) except (KeyboardInterrupt, EOFError): install_retcode = -1 except: