This commit is contained in:
guinux 2015-03-11 14:16:27 +01:00
parent e7f0e086c7
commit 68c8820f3b

View File

@ -60,7 +60,6 @@ namespace Pamac {
alpm_config = new Alpm.Config ("/etc/pacman.conf"); alpm_config = new Alpm.Config ("/etc/pacman.conf");
databases_lock_mutex = Mutex (); databases_lock_mutex = Mutex ();
aur_results = new HashTable<string, Json.Array> (str_hash, str_equal); aur_results = new HashTable<string, Json.Array> (str_hash, str_equal);
aur_updates = {};
aur_updates_checked = false; aur_updates_checked = false;
refresh_handle (); refresh_handle ();
} }
@ -644,7 +643,7 @@ namespace Pamac {
if (enable_aur) { if (enable_aur) {
if (aur_updates_checked == false) { if (aur_updates_checked == false) {
// get aur updates // get aur updates
updates_infos = {}; aur_updates = {};
var aur_pkgs = AUR.multiinfo (local_pkgs); var aur_pkgs = AUR.multiinfo (local_pkgs);
int cmp; int cmp;
unowned Json.Object pkg_info; unowned Json.Object pkg_info;
@ -661,10 +660,9 @@ namespace Pamac {
infos.db_name = "AUR"; infos.db_name = "AUR";
infos.tarpath = pkg_info.get_string_member ("URLPath"); infos.tarpath = pkg_info.get_string_member ("URLPath");
infos.download_size = 0; infos.download_size = 0;
updates_infos += infos; aur_updates += infos;
} }
} }
aur_updates = updates_infos;
aur_updates_checked = true; aur_updates_checked = true;
} }
updates.aur_updates = aur_updates; updates.aur_updates = aur_updates;
@ -1036,6 +1034,7 @@ namespace Pamac {
trans_commit.begin (sender, (obj, res) => { trans_commit.begin (sender, (obj, res) => {
var err = trans_commit.end (res); var err = trans_commit.end (res);
refresh_handle (); refresh_handle ();
aur_updates_checked = false;
trans_commit_finished (err); trans_commit_finished (err);
}); });
} }