mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
(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:
parent
50423e9545
commit
1aa0804637
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user