zap/uninstall :files in netbeans.rb

This commit is contained in:
Roland Walker 2014-09-13 10:23:02 -04:00
parent 5cef8fa83a
commit 8a1e3ef4c7
1 changed files with 4 additions and 3 deletions

View File

@ -19,11 +19,12 @@ class Netbeans < Cask
# receipts database that would be a bug upstream with NetBeans not prefixing
# its GlassFish package with "org.netbeans."
#
# If this ever becomes an issue, :pkgutil => 'glassfish-.*' could be moved
# to a separate "zap" stanza.
#
# The NetBeans installer does some postflight unpacking of paths installed by
# the OS X installer, so it's insufficient to just delete the paths exposed
# by pkgutil, hence the additional `:files` option below.
uninstall :pkgutil => 'org.netbeans.ide.*|glassfish-.*',
:files => [
'/Applications/NetBeans'
]
:files => '/Applications/NetBeans'
end