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: