forked from cromer/pamac-classic
fix refresh when databases don't exist
This commit is contained in:
parent
29bcd62bce
commit
c524d1fde3
@ -483,6 +483,8 @@ namespace Pamac {
|
|||||||
} catch (SpawnError e) {
|
} catch (SpawnError e) {
|
||||||
stderr.printf ("SpawnError: %s\n", e.message);
|
stderr.printf ("SpawnError: %s\n", e.message);
|
||||||
}
|
}
|
||||||
|
// a new handle is required to use copied databases
|
||||||
|
refresh_handle ();
|
||||||
// update ".db"
|
// update ".db"
|
||||||
bool success = update_dbs (alpm_handle, force);
|
bool success = update_dbs (alpm_handle, force);
|
||||||
if (cancellable.is_cancelled ()) {
|
if (cancellable.is_cancelled ()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user