aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask
diff options
context:
space:
mode:
authorMarkus Reiter2017-04-21 15:50:39 +0200
committerMarkus Reiter2017-04-21 16:46:39 +0200
commit80e09c8dec623dd72872e154daad7229a8df6f8c (patch)
tree3abbc0a7ad60d44b3a0e4e55658ecf38d317b577 /Library/Homebrew/cask
parenta27a82c19653862a9099a13d0b66ccc9b3285194 (diff)
downloadbrew-80e09c8dec623dd72872e154daad7229a8df6f8c.tar.bz2
Partly revert “Fix `uninstall :pkgutil` leaving empty `.app` directories.”.
Diffstat (limited to 'Library/Homebrew/cask')
-rw-r--r--Library/Homebrew/cask/lib/hbc/pkg.rb7
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