Permalink
Commits on Oct 13, 2018
  1. Cask: fix quarantine check when xattr is broken

    amyspark committed Oct 13, 2018
Commits on Oct 8, 2018
  1. Cask: simplify chmod +w passes

    amyspark committed Oct 8, 2018
  2. zip: restore extended attributes when under MacOS

    amyspark committed Oct 8, 2018
  3. Cask: set write permissions on symlinks

    amyspark committed Oct 8, 2018
Commits on Sep 26, 2018
  1. Cask: check if xattr works before quarantining

    amyspark committed Sep 26, 2018
Commits on Sep 14, 2018
  1. Cask: constrain quarantine support status

    amyspark committed Sep 14, 2018
    Quarantine is available ONLY if the script exits with '2'.
    It is definitely NOT available if Swift doesn't exist or if
    it exits with '5' (incompatible SDK). All other cases are
    from now on treated as unsupported.
    
    Also print to standard error only when explictly required (via an
    exception).
Commits on Sep 12, 2018
  1. Upgrade: implement linkage repair

    amyspark committed Sep 12, 2018
    After upgrading existing kegs, we now search and upgrade their
    dependents as well. If any are detected that have broken linkage, they
    are reinstalled from source.
    
    If there are any formulae in the dependents tree that are pinned, they
    are only reinstalled if they're not outdated; in all cases, a suitable
    message is printed detailing the kegs that will be acted upon.
Commits on Sep 8, 2018
  1. Cask: rename no-translocation-bit changer function

    amyspark committed Sep 8, 2018
  2. Cask: split quarantine/release functions

    amyspark committed Sep 8, 2018
Commits on Sep 7, 2018
  1. Cask: use native chmod to set write permissions

    amyspark committed Sep 7, 2018
    Ruby chmod follows symlinks, which can point to non-existent files. This
    should fix quarantining Casks e.g. disk-inventory-x.
  2. Cask: fixes for quarantining

    amyspark committed Sep 7, 2018
    Gatekeeper's Path Randomization is currently making automated
    installation a nightmare. Let's manually toggle the (undocumented) app
    translocation bit in the `com.apple.quarantine` extended attribute.
    
    While we're at it, let's also toss in some fixes:
    
    - zip downloads with improper permissions that prevent us from
    quarantining
    - quarantine/release/skip downloads as requested by the user
Commits on Sep 4, 2018
  1. Cask: check support of quarantine's tools

    amyspark committed Sep 4, 2018
    - In some cases (usually old CLT versions) Swift is available but needs an
    extra guard to use the quarantine API.
    - xattr's native filesystem recursion is an Apple extension which is
    not available in Mojave; so let's use xargs.
    - Insert a quarantine support check in brew cask doctor.
    
    Fixes Homebrew/homebrew-cask#51554, and fixes Homebrew/homebrew-cask#51538.
Commits on Aug 31, 2018
  1. quarantine: do not automatically follow symlinks

    amyspark committed Aug 31, 2018
    This prevents failure when Casks have broken framework symlinks.
  2. Enable quarantining of Homebrew-Cask's downloads

    amyspark committed Aug 31, 2018
Commits on Jan 29, 2018
  1. Fix @reitermarkus's comments

    amyspark committed Jan 29, 2018
Commits on Dec 2, 2017
  1. Revert extra deletion

    amyspark committed Dec 2, 2017
  2. Let the upgrade command add new build flags

    amyspark committed Dec 2, 2017
  3. Refactor Cask's doctor command

    amyspark committed Dec 2, 2017
    - Remove :failed
    - Use Checkable to store the status and warnings/errors
    - Refactor the methods using audit as basis
Commits on Nov 30, 2017
  1. Let Cask doctor exit with 1 via a CaskError

    amyspark committed Nov 3, 2017
Commits on Nov 29, 2017
  1. Leftover of @reitermarkus's comments

    amyspark committed Nov 29, 2017
    Simplify a condition
  2. Implement @reitermarkus's comments

    amyspark committed Nov 29, 2017
    Leftover && and remove xattr "copy"
Commits on Nov 28, 2017
  1. Remove unused backup and metadata logic

    amyspark committed Nov 28, 2017
  2. Fully separate purge_versioned_files

    amyspark committed Nov 28, 2017
  3. Try #2 at handling backed up Casks

    amyspark committed Nov 28, 2017
    Avoid using variables altogether; fork out the purge into two
    specialized + one common function
  4. Always backup the old Cask prior to upgrade

    amyspark committed Nov 28, 2017
    (and if doing so, correctly set the staged_path when purging it)
  5. Use the proper path when purging metadata

    amyspark committed Nov 28, 2017
  6. Solve styling and metadata issues

    amyspark committed Nov 28, 2017
  7. Test upgrade for Casks with version :latest

    amyspark committed Nov 28, 2017
Commits on Nov 27, 2017
  1. Remove redundant --greedy

    amyspark committed Nov 27, 2017
  2. Implement more of @reitermarkus's comments

    amyspark committed Nov 27, 2017
    - Include tests in context
    - replace 'route' with 'path'
    - more assorted fixes