Skip to content

Commit 78daa15

Browse files
committed
cargo: Recursively copy install fragments
This is useful on OS X in order to handle the .dSYM files.
1 parent dd17a98 commit 78daa15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/cargo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ fn cmd_search(c: cargo) {
15361536
fn install_to_dir(srcfile: str, destdir: str) {
15371537
let newfile = path::connect(destdir, path::basename(srcfile));
15381538

1539-
let status = run::run_program("cp", [srcfile, newfile]);
1539+
let status = run::run_program("cp", ["-r", srcfile, newfile]);
15401540
if status == 0 {
15411541
info(#fmt["installed: '%s'", newfile]);
15421542
} else {

0 commit comments

Comments
 (0)