Skip to content

Commit

Permalink
fix: fix homebrew's -Si when used with --cask
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Aug 21, 2020
1 parent 9999310 commit 67bb8e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/package_manager/homebrew.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ impl PackageManager for Homebrew {

/// Si displays remote package information: name, version, description, etc.
fn si(&self, kws: &[&str], flags: &[&str]) -> Result<(), Error> {
self.just_run("brew", &["info"], kws, flags)
let subcmd: &[&str] = if self.cfg.force_cask {
&["cask", "info"]
} else {
&["info"]
};
self.just_run("brew", subcmd, kws, flags)
}

/// Sii displays packages which require X to be installed, aka reverse dependencies.
Expand Down

0 comments on commit 67bb8e8

Please sign in to comment.