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

alpm_config.vala :: fix copy command so that globbing and brace expansion...

alpm_config.vala :: fix copy command so that globbing and brace expansion works. fix double path separator in both the link and copy commands.
parent 7e60e72a
No related branches found
No related tags found
1 merge request!416Fix Bugs In The Commands Used To Setup Temp DBs
......@@ -141,9 +141,9 @@ public class AlpmConfig {
string tmp_dbpath = "/tmp/pamac-checkdbs";
try {
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 ("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 ("cp %s/sync/*.{db,files} %s/sync".printf (dbpath, tmp_dbpath));
Process.spawn_command_line_sync ("bash -c 'cp %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