fix refresh when databases don't exist

This commit is contained in:
guinux 2017-09-07 08:44:43 +02:00
parent 29bcd62bce
commit c524d1fde3

View File

@ -483,6 +483,8 @@ namespace Pamac {
} catch (SpawnError e) {
stderr.printf ("SpawnError: %s\n", e.message);
}
// a new handle is required to use copied databases
refresh_handle ();
// update ".db"
bool success = update_dbs (alpm_handle, force);
if (cancellable.is_cancelled ()) {