From 80f799d1cadf781eed51b1aac8d03767f4f672fa Mon Sep 17 00:00:00 2001 From: Junaid Ali Date: Fri, 20 May 2016 16:58:24 +0200 Subject: [PATCH] logging IOError for sources.list --- hooks/pg_dir_hooks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/pg_dir_hooks.py b/hooks/pg_dir_hooks.py index add2a4d..7703d6b 100755 --- a/hooks/pg_dir_hooks.py +++ b/hooks/pg_dir_hooks.py @@ -137,7 +137,8 @@ def config_changed(): status_set('maintenance', 'Upgrading apt packages') stop_pg() if charm_config.changed('install_sources'): - configure_pg_sources() + if not configure_pg_sources(): + log('IOError: sources.list couldn\'t be updated') configure_sources(update=True) pkgs = determine_packages() for pkg in pkgs: