Skip to content

Commit e7664bb

Browse files
committed
---
yaml --- r: 15599 b: refs/heads/try c: e3961df h: refs/heads/master i: 15597: 5390e01 15595: 9ffa983 15591: 5b5ad53 15583: 62455ac v: v3
1 parent 1b0c666 commit e7664bb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 8688b1b845f3ceede2a62da6a2fc2256e6bcfd2a
5+
refs/heads/try: e3961df78d23e353ed48961bd82c27b2c935494c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/cargo/cargo.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,13 @@ fn rustc_sysroot() -> str {
517517
fn install_source(c: cargo, path: str) {
518518
#debug("source: %s", path);
519519
os::change_dir(path);
520-
let contents = os::list_dir_path(".");
521520

522-
#debug("contents: %s", str::connect(contents, ", "));
523-
524-
let cratefiles =
525-
vec::filter::<str>(contents, { |n| str::ends_with(n, ".rc") });
521+
let mut cratefiles = [];
522+
for os::walk_dir(".") {|p|
523+
if str::ends_with(p, ".rc") {
524+
cratefiles += [p];
525+
}
526+
}
526527

527528
if vec::is_empty(cratefiles) {
528529
fail "This doesn't look like a rust package (no .rc files).";

0 commit comments

Comments
 (0)