(cargo) added a rough fix for installed exe permissions

Since `os::copy_file` wasn't preserving the executable permissions,
this reverts back to `run::run_program` and `cp` to install
the packages.
This commit is contained in:
Kevin Cantu 2012-05-27 10:40:35 -07:00
parent 50423e9545
commit 1aa0804637

View File

@ -863,7 +863,7 @@ fn install_to_dir(srcfile: str, destdir: str) {
let newfile = path::connect(destdir, path::basename(srcfile));
info(#fmt["Installing '%s'...", newfile]);
copy_warn(srcfile, newfile);
run::run_program("cp", [srcfile, newfile]);
}
fn copy_warn(srcfile: str, destfile: str) {