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

Commit

Permalink
Merge pull request #414 from lots0logs/368-dont-update-files-dbs-for-…
Browse files Browse the repository at this point in the history
…updates-v2

Stop Downloading Database Files That Are The Same As Local Copies
  • Loading branch information
guinux committed Mar 22, 2018
2 parents 21b8e96 + 7e60e72 commit b6c93a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/alpm_config.vala
Expand Up @@ -143,6 +143,7 @@ public class AlpmConfig {
Process.spawn_command_line_sync ("mkdir -p %s/sync".printf (tmp_dbpath));
Process.spawn_command_line_sync ("ln -sf %s/local %s".printf (dbpath, tmp_dbpath));
Process.spawn_command_line_sync ("chmod -R 777 %s/sync".printf (tmp_dbpath));
Process.spawn_command_line_sync ("cp %s/sync/*.{db,files} %s/sync".printf (dbpath, tmp_dbpath));
handle = new Alpm.Handle (rootdir, tmp_dbpath, out error);
} catch (SpawnError e) {
stderr.printf ("SpawnError: %s\n", e.message);
Expand Down

0 comments on commit b6c93a3

Please sign in to comment.