logging IOError for sources.list

This commit is contained in:
Junaid Ali 2016-05-20 16:58:24 +02:00
parent 516246f57d
commit 80f799d1ca
1 changed files with 2 additions and 1 deletions

View File

@ -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: