diff options
| author | Markus Reiter | 2017-04-21 17:37:42 +0200 |
|---|---|---|
| committer | GitHub | 2017-04-21 17:37:42 +0200 |
| commit | 75ceed39e6e7e3d594422d7ecf342cf72267f781 (patch) | |
| tree | 4e05c5f1b365c8a6c79537118c10c4c6f139b6d8 /Library/Homebrew/cask/lib | |
| parent | cd110b467d76e0d93afc35785c769478b0ed6b32 (diff) | |
| parent | 80e09c8dec623dd72872e154daad7229a8df6f8c (diff) | |
| download | brew-75ceed39e6e7e3d594422d7ecf342cf72267f781.tar.bz2 | |
Merge pull request #2520 from reitermarkus/pkgutil-plist
Partly revert “Fix `uninstall :pkgutil` leaving empty `.app` directories.”.
Diffstat (limited to 'Library/Homebrew/cask/lib')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/pkg.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/pkg.rb b/Library/Homebrew/cask/lib/hbc/pkg.rb index 902d56449..c9aa3180f 100644 --- a/Library/Homebrew/cask/lib/hbc/pkg.rb +++ b/Library/Homebrew/cask/lib/hbc/pkg.rb @@ -63,7 +63,10 @@ module Hbc end def pkgutil_bom_all - @pkgutil_bom_all ||= info.fetch("paths").keys.map { |p| root.join(p) } + @pkgutil_bom_all ||= @command.run!("/usr/sbin/pkgutil", args: ["--files", package_id]) + .stdout + .split("\n") + .map { |path| root.join(path) } end def root @@ -71,7 +74,7 @@ module Hbc end def info - @info ||= @command.run!("/usr/sbin/pkgutil", args: ["--export-plist", package_id]) + @info ||= @command.run!("/usr/sbin/pkgutil", args: ["--pkg-info-plist", package_id]) .plist end |
