Skip to content
Snippets Groups Projects
Commit d53e9860 authored by guinux's avatar guinux
Browse files

fix #331

parent 834c1569
No related branches found
No related tags found
No related merge requests found
......@@ -1119,15 +1119,9 @@ namespace Pamac {
unowned Alpm.List<unowned Alpm.DB> syncdbs = tmp_handle.syncdbs;
while (syncdbs != null) {
unowned Alpm.DB db = syncdbs.data;
db.update (0);
syncdbs.next ();
}
// refresh file dbs
var tmp_files_handle = alpm_config.get_handle (true, true);
syncdbs = tmp_files_handle.syncdbs;
while (syncdbs != null) {
unowned Alpm.DB db = syncdbs.data;
db.update (0);
int ret = db.update (0);
if (ret == 0) stdout.printf ("updated %s\n", db.name);
else if (ret == 1) stdout.printf ("%s is up to date\n", db.name);
syncdbs.next ();
}
string[] local_pkgs = {};
......@@ -1188,6 +1182,14 @@ namespace Pamac {
};
get_updates_finished (updates);
}
// refresh file dbs
var tmp_files_handle = alpm_config.get_handle (true, true);
syncdbs = tmp_files_handle.syncdbs;
while (syncdbs != null) {
unowned Alpm.DB db = syncdbs.data;
db.update (0);
syncdbs.next ();
}
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment