Skip to content

Commit c68a134

Browse files
committed
---
yaml --- r: 12593 b: refs/heads/master c: e3961df h: refs/heads/master i: 12591: c05c061 v: v3
1 parent 397ea9f commit c68a134

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8688b1b845f3ceede2a62da6a2fc2256e6bcfd2a
2+
refs/heads/master: e3961df78d23e353ed48961bd82c27b2c935494c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/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)