Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Homebrew/brew.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Feb 17, 2017
  2. Feb 13, 2017
  3. Feb 10, 2017
  4. Feb 07, 2017
  5. Feb 05, 2017
  6. Feb 04, 2017
  7. Jan 31, 2017
  8. Jan 29, 2017
  9. Jan 25, 2017
  10. Jan 23, 2017
  11. Jan 02, 2017
  12. Jan 01, 2017
  13. Dec 30, 2016
  14. Dec 29, 2016
    • Nathan Toone's avatar
      Delete pkgutil directories that are really files. · 6d318761
      Nathan Toone authored
      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.
      6d318761
Loading