Fix a manifest-generation bug on beta

Right now all Cargo release tarballs are 'nightly', they're not on the standard
channels yet.
This commit is contained in:
Alex Crichton 2017-02-06 13:33:03 -08:00
parent 324b175174
commit bf126d244e

View file

@ -317,6 +317,8 @@ impl Builder {
fn filename(&self, component: &str, target: &str) -> String {
if component == "rust-src" {
format!("rust-src-{}.tar.gz", self.channel)
} else if component == "cargo" {
format!("cargo-nightly-{}.tar.gz", target)
} else {
format!("{}-{}-{}.tar.gz", component, self.channel, target)
}