diff options
| author | bors <bors@rust-lang.org> | 2017-02-26 12:58:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-02-26 12:58:08 +0000 |
| commit | 72e6d40f81b44ecda61ca0fcfd50e348679ad795 (patch) | |
| tree | 3fe06787f10a873a21f01c4a623f853d1650b034 | |
| parent | 808dbcc9eb4c33b40c3ce8a8dec03e4d91f0ec12 (diff) | |
| parent | 5ed6765fd419e50f88de0323fc8328568ed55ab0 (diff) | |
| download | rust-72e6d40f81b44ecda61ca0fcfd50e348679ad795.tar.gz rust-72e6d40f81b44ecda61ca0fcfd50e348679ad795.zip | |
Auto merge of #40111 - alexcrichton:fix-manifests, r=brson
Attempt to fix nightly manifests Found a few bugs and mistakes with the manifests. Closes #40106
| -rw-r--r-- | src/tools/build-manifest/src/main.rs | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs index 6d40dcacdba..c2c91487b0c 100644 --- a/src/tools/build-manifest/src/main.rs +++ b/src/tools/build-manifest/src/main.rs @@ -215,8 +215,8 @@ impl Builder { self.package("rust-docs", &mut manifest.pkg, TARGETS); self.package("rust-src", &mut manifest.pkg, &["*"]); - if self.channel == "rust-nightly" { - self.package("analysis", &mut manifest.pkg, TARGETS); + if self.channel == "nightly" { + self.package("rust-analysis", &mut manifest.pkg, TARGETS); } let mut pkg = Package { @@ -283,7 +283,7 @@ impl Builder { pkg.target.insert(host.to_string(), Target { available: true, url: Some(self.url("rust", host)), - hash: Some(to_hex(digest.as_ref())), + hash: Some(digest), components: Some(components), extensions: Some(extensions), }); @@ -409,19 +409,3 @@ impl Builder { self.sign(&dst); } } - -fn to_hex(digest: &[u8]) -> String { - let mut ret = String::new(); - for byte in digest { - ret.push(hex((byte & 0xf0) >> 4)); - ret.push(hex(byte & 0xf)); - } - return ret; - - fn hex(b: u8) -> char { - match b { - 0...9 => (b'0' + b) as char, - _ => (b'a' + b - 10) as char, - } - } -} |
