about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-12-15 16:41:06 -0800
committerGraydon Hoare <graydon@mozilla.com>2011-12-16 12:28:39 -0800
commit1bf078f988498ddbdbbfd5c58f850bce14518db6 (patch)
tree98d15ae68f3583ea1e8d1334ad874faacac64ad1 /src
parentd1bca753b8c5924272978a38cb08db6679f2cf0d (diff)
downloadrust-1bf078f988498ddbdbbfd5c58f850bce14518db6.tar.gz
rust-1bf078f988498ddbdbbfd5c58f850bce14518db6.zip
Remove hopefully-now-redundant chops of ./ at the beginning of filenames in cargo.
Diffstat (limited to 'src')
-rw-r--r--src/cargo/cargo.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs
index 4fb7488a8f8..3347b367ee2 100644
--- a/src/cargo/cargo.rs
+++ b/src/cargo/cargo.rs
@@ -155,11 +155,9 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
         name = str::slice(name, 0u, ri as uint);
     }
     log #fmt["Installing: %s", name];
-    let old = vec::map(fs::list_dir("."),
-                       {|x| str::slice(x, 2u, str::byte_len(x))});
+    let old = fs::list_dir(".");
     run::run_program("rustc", [name + ".rc"]);
-    let new = vec::map(fs::list_dir("."),
-                       {|x| str::slice(x, 2u, str::byte_len(x))});
+    let new = fs::list_dir(".");
     let created =
         vec::filter::<str>(new, { |n| !vec::member::<str>(n, old) });
     let exec_suffix = os::exec_suffix();