Remove hopefully-now-redundant chops of ./ at the beginning of filenames in cargo.

This commit is contained in:
Graydon Hoare 2011-12-15 16:41:06 -08:00
parent d1bca753b8
commit 1bf078f988

View File

@ -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();