diff options
| author | Elly Jones <elly@leptoquark.net> | 2011-12-16 22:27:47 -0500 |
|---|---|---|
| committer | Elly Jones <elly@leptoquark.net> | 2011-12-16 22:27:47 -0500 |
| commit | 7bd003a1d0a992a2d70204095e454773f7afe37d (patch) | |
| tree | ffbe214797df52d7f1526d02e6a230903ed00776 | |
| parent | 9a0b89b5341c93a071e8a5be78b3fb066b12c5ba (diff) | |
| download | rust-7bd003a1d0a992a2d70204095e454773f7afe37d.tar.gz rust-7bd003a1d0a992a2d70204095e454773f7afe37d.zip | |
cargo: remove obsolete rust-pkg-index lookup code
| -rw-r--r-- | src/cargo/cargo.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs index f7b3cd21168..786e595708a 100644 --- a/src/cargo/cargo.rs +++ b/src/cargo/cargo.rs @@ -373,28 +373,6 @@ fn install_file(c: cargo, wd: str, path: str) { install_source(c, wd); } -fn install_resolved(c: cargo, wd: str, key: str) { - fs::remove_dir(wd); - let u = "https://rust-package-index.appspot.com/pkg/" + key; - let p = run::program_output("curl", [u]); - if p.status != 0 { - fail #fmt["Fetch of %s failed: %s", u, p.err]; - } - let j = json::from_str(p.out); - alt j { - some (json::dict(_j)) { - alt _j.find("install") { - some (json::string(g)) { - log #fmt["Resolved: %s -> %s", key, g]; - cmd_install(c, ["cargo", "install", g]); - } - _ { fail #fmt["Bogus install: '%s'", p.out]; } - } - } - _ { fail #fmt["Bad json: '%s'", p.out]; } - } -} - fn install_package(c: cargo, wd: str, pkg: package) { info("Installing with " + pkg.method + " from " + pkg.url + "..."); if pkg.method == "git" { |
