Skip to content
Snippets Groups Projects
Unverified Commit 7155f01b authored by Dustin Falgout's avatar Dustin Falgout
Browse files

preserve file attrs when copying database files

parent 3b59e3b7
No related branches found
No related tags found
1 merge request!420preserve file attrs when copying database files
......@@ -143,7 +143,7 @@ public class AlpmConfig {
Process.spawn_command_line_sync ("mkdir -p %s/sync".printf (tmp_dbpath));
Process.spawn_command_line_sync ("ln -sf %slocal %s".printf (dbpath, tmp_dbpath));
Process.spawn_command_line_sync ("chmod -R 777 %s/sync".printf (tmp_dbpath));
Process.spawn_command_line_sync ("bash -c 'cp %ssync/*.{db,files} %s/sync'".printf (dbpath, tmp_dbpath));
Process.spawn_command_line_sync ("bash -c 'cp -p %ssync/*.{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);
......
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