Commit b321354b authored by guinux's avatar guinux

fix #700

parent 3cde0e0f
......@@ -1415,11 +1415,8 @@ namespace Pamac {
unowned string cachedir = cachedirs.data;
try {
Process.spawn_command_line_sync ("mv -f %s %s".printf (path, cachedir));
string tarball_name = Path.get_basename (path);
string new_path = "%s%s".printf (cachedir, tarball_name);
success = trans_load_pkg (new_path);
} catch (SpawnError e) {
stderr.printf ("SpawnError: %s\n", e.message);
critical ("SpawnError: %s\n", e.message);
}
} else {
// rm built package
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment