This commit is contained in:
Chris Cromer 2017-10-02 10:38:49 -03:00
parent b5ea6cbddb
commit 575a29cd95
4 changed files with 3 additions and 1 deletions

View File

@ -289,7 +289,6 @@ namespace Pamac {
var new_alpm_conf = new HashTable<string,Variant> (str_hash, str_equal); var new_alpm_conf = new HashTable<string,Variant> (str_hash, str_equal);
new_alpm_conf.insert ("IgnorePkg", new Variant.string (ignorepkg_string.str)); new_alpm_conf.insert ("IgnorePkg", new Variant.string (ignorepkg_string.str));
transaction.start_write_alpm_config (new_alpm_conf); transaction.start_write_alpm_config (new_alpm_conf);
} }
} }

View File

@ -379,6 +379,7 @@ namespace Pamac {
} catch (Error e) { } catch (Error e) {
stderr.printf ("Error: %s\n", e.message); stderr.printf ("Error: %s\n", e.message);
} }
alpm_config.reload ();
refresh_handle (); refresh_handle ();
generate_mirrors_list_finished (); generate_mirrors_list_finished ();
} }

View File

@ -1760,6 +1760,7 @@ namespace Pamac {
} }
void on_write_alpm_config_finished (bool checkspace) { void on_write_alpm_config_finished (bool checkspace) {
refresh_handle ();
system_daemon.write_alpm_config_finished.disconnect (on_write_alpm_config_finished); system_daemon.write_alpm_config_finished.disconnect (on_write_alpm_config_finished);
write_alpm_config_finished (checkspace); write_alpm_config_finished (checkspace);
} }

View File

@ -101,6 +101,7 @@ namespace Pamac {
} }
public void refresh_handle () { public void refresh_handle () {
alpm_config.reload ();
alpm_handle = alpm_config.get_handle (); alpm_handle = alpm_config.get_handle ();
if (alpm_handle == null) { if (alpm_handle == null) {
return; return;