aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/pkg.rb
AgeCommit message (Collapse)Author
2017-08-06Fix `Pkg#uninstall` not calling `MacOS.undeletable?` for all files.Markus Reiter
2017-04-21Partly revert “Fix `uninstall :pkgutil` leaving empty `.app` directories.”.Markus Reiter
2017-03-11Save flags in `with_full_permissions`.Markus Reiter
2017-03-11Fix `uninstall :pkgutil` leaving empty `.app` directories.Markus Reiter
2017-03-08Refactor Cask `pkg` artifact.Markus Reiter
2017-02-04Make descriptions a bit clearer.Markus Reiter
2016-12-28Delete pkgutil directories that are really files.Nathan Toone
Sometimes, pkgutil will return actual files (usually .nib files) as if they were part of the directory. Microsoft Office is an example of this: in a recent update the file `/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/SharedSupport/Microsoft Error Reporting.app/Contents/Resources/en.lproj/MainWindowAlt.nib` was returning from `/usr/sbin/pkgutil --only-dirs --files com.microsoft.package.component` even though it should have been a file instead of a directory. This caused the `rmdir` command to fail. This patch will check if we are trying to delete a “directory” that is really a “file” - and if we are, we just delete the file instead. This will allow packages that get in this state to be uninstalled. A unit test which can be run using `brew cask-tests` is also included.
2016-11-22cask: Delete package dir if it is symlink on the uninstallKaito Udagawa
When a Formula is converted into a Cask (e.g. osxfuse), a symlink remains at the place of package dir. This change ensure to remove such leftovers.
2016-10-23Auto-correct block delimiters.Markus Reiter
2016-10-23Use `0`-only prefix for octal numbers.Markus Reiter
2016-09-24Cask: Use nested classes and modules.Markus Reiter
2016-08-19initAnastasiaSulyagina