Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
fix refresh when databases don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
guinux committed Sep 7, 2017
1 parent 29bcd62 commit c524d1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/system_daemon.vala
Expand Up @@ -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 ()) {
Expand Down

0 comments on commit c524d1f

Please sign in to comment.