build-manifest: stop generating numbered channel names except for stable

This fixes numbered channel names being created for the nightly channel,
and once the root cause of this rides the trains, for beta.
This commit is contained in:
Pietro Albini 2020-10-12 17:39:13 +02:00
parent d6b5ffb5b4
commit 5973fd42a2
No known key found for this signature in database
GPG Key ID: 3E06ABE80BAAF19C

View File

@ -252,12 +252,13 @@ impl Builder {
}
let manifest = self.build_manifest();
let rust_version = self.versions.rustc_version();
self.write_channel_files(self.versions.channel(), &manifest);
if self.versions.channel() != rust_version {
self.write_channel_files(&rust_version, &manifest);
}
if self.versions.channel() == "stable" {
// channel-rust-1.XX.YY.toml
let rust_version = self.versions.rustc_version();
self.write_channel_files(rust_version, &manifest);
// channel-rust-1.XX.toml
let major_minor = rust_version.split('.').take(2).collect::<Vec<_>>().join(".");
self.write_channel_files(&major_minor, &manifest);
}