Skip to content

Commit

Permalink
Return empty component list for custom toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
inejge committed Jul 28, 2016
1 parent 16b09cb commit 41ed7f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rustup/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ impl<'a> Toolchain<'a> {
let toolchain = &self.name;
let ref toolchain = try!(ToolchainDesc::from_str(toolchain)
.chain_err(|| ErrorKind::ComponentsUnsupported(self.name.to_string())));
if toolchain.is_custom() {
return Ok(vec![]);
}
let prefix = InstallPrefix::from(self.path.to_owned());
let manifestation = try!(Manifestation::open(prefix, toolchain.target.clone()));

Expand Down

0 comments on commit 41ed7f5

Please sign in to comment.