diff --git a/src/preferences_dialog.vala b/src/preferences_dialog.vala index 85313a1..a3cae9d 100644 --- a/src/preferences_dialog.vala +++ b/src/preferences_dialog.vala @@ -289,7 +289,6 @@ namespace Pamac { var new_alpm_conf = new HashTable (str_hash, str_equal); new_alpm_conf.insert ("IgnorePkg", new Variant.string (ignorepkg_string.str)); transaction.start_write_alpm_config (new_alpm_conf); - } } diff --git a/src/system_daemon.vala b/src/system_daemon.vala index d937d08..b992e05 100644 --- a/src/system_daemon.vala +++ b/src/system_daemon.vala @@ -379,6 +379,7 @@ namespace Pamac { } catch (Error e) { stderr.printf ("Error: %s\n", e.message); } + alpm_config.reload (); refresh_handle (); generate_mirrors_list_finished (); } diff --git a/src/transaction.vala b/src/transaction.vala index 3c56bf7..c916f6c 100644 --- a/src/transaction.vala +++ b/src/transaction.vala @@ -1760,6 +1760,7 @@ namespace Pamac { } void on_write_alpm_config_finished (bool checkspace) { + refresh_handle (); system_daemon.write_alpm_config_finished.disconnect (on_write_alpm_config_finished); write_alpm_config_finished (checkspace); } diff --git a/src/user_daemon.vala b/src/user_daemon.vala index 09d8dc9..0378863 100644 --- a/src/user_daemon.vala +++ b/src/user_daemon.vala @@ -101,6 +101,7 @@ namespace Pamac { } public void refresh_handle () { + alpm_config.reload (); alpm_handle = alpm_config.get_handle (); if (alpm_handle == null) { return;