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. Apr 12, 2016
  2. Apr 11, 2016
  3. Apr 10, 2016
  4. Apr 09, 2016
  5. Apr 08, 2016
    • Martin Afanasjew's avatar
      diagnostic: prefer guard clauses for readability · 1d9977b7
      Martin Afanasjew authored
      
      Guard clauses instead of if/unless blocks make the checks easier to
      understand and reduce nesting, thus improving overall readability.
      
      This includes the following additional minor changes:
      
      - Make indentation of commands consistent inside diagnostic messages.
      - Fix minor typos and inconsistent punctuation in diagnostic messages.
      - Fix here documents to always start with `<<-EOS.undent` on a new line,
        followed by the message (indented once), followed by `EOS` (at the
        same level like `<<-EOS.undent`).
      - Always separate the check logic (and guard clauses) from the following
        message by a single empty line (for consistency and readability).
      - Standardize on `message` as the variable name when diagnostic messages
        need to be constructed from multiple parts.
      - Where easily possible, adapt check logic to stay within 80-column
        limit, use more expressive variable names, and break down long
        expressions into multiple statements with intermediate results.
      
      Closes #49.
      
      Signed-off-by: default avatarMartin Afanasjew <martin@afanasjew.de>
      1d9977b7
    • Martin Afanasjew's avatar
      brew.sh: make sure to always use system 'awk' · 6a82bc49
      Martin Afanasjew authored
      This should prevent issues like #47 and make us more resilient.
      6a82bc49
    • Martin Afanasjew's avatar
      scm/git: prevent exec bomb with 'env :userpaths' · d7aa0c03
      Martin Afanasjew authored
      
      Using `git` from `Formula#install` can cause an exec bomb if used in a
      formula with `env :userpaths` because that causes both `Library/ENV/4.3`
      and `Library/ENV/scm` to be in PATH, both of which contain a `git`
      binary that is the same SCM wrapper. Those will mutually exec each other
      indefinitely as they fail to detect that they are the same wrapper.
      
      Extend the exec-bomb protection to check the paths after all symbolic
      links have been expanded to prevent this situation.
      
      Fixes #43.
      Fixes Homebrew/homebrew-core#133.
      Fixed Homebrew/homebrew-core#143.
      
      Closes #46.
      
      Signed-off-by: default avatarMartin Afanasjew <martin@afanasjew.de>
      d7aa0c03
  6. Apr 07, 2016
  7. Apr 06, 2016
    • Martin Afanasjew's avatar
      tests: update prune --verbose test · 7771f3af
      Martin Afanasjew authored
      
      Closes #15.
      
      Signed-off-by: default avatarMartin Afanasjew <martin@afanasjew.de>
      7771f3af
    • Martin Afanasjew's avatar
      f2245ada
    • Martin Afanasjew's avatar
      prune: handle broken app symlinks · ea38a703
      Martin Afanasjew authored
      Remove broken symlinks from `/Applications` and `~/Applications` that
      were previously created by `brew linkapps`, but are no longer valid
      because formulae were uninstalled or the provided apps have changed.
      ea38a703
    • Martin Afanasjew's avatar
      unlinkapps: add --dry-run option · b50e950f
      Martin Afanasjew authored
      Add `--dry-run` option as is customary for destructive commands. Update
      `bash` completion and man page accordingly. Also correct and update
      documentation for both `brew linkapps` and `brew unlinkapps` in more
      general terms.
      b50e950f
    • Martin Afanasjew's avatar
      unlinkapps: modernize · dcf406f1
      Martin Afanasjew authored
      Simplify code by using `Pathname` methods as much as possible. Also
      avoid calling external commands for basic functionality like unlinking,
      reduce code duplication by using a method from `cmd/linkapps.rb`, count
      unlinked symlinks with `ObserverPathnameExtension`, and adjust output
      for consistency with `brew linkapps`.
      dcf406f1
    • Martin Afanasjew's avatar
      linkapps: modernize · f6318092
      Martin Afanasjew authored
      Simplify code by using `Pathname` methods as much as possible. Also
      avoid calling external commands for basic functionality like symlink
      creation, refactor code that can be shared with `brew unlinkapps`, and
      print a summary line at the end (if symlinks were created).
      f6318092
    • Martin Afanasjew's avatar
      brew.sh: make analytics 'curl' fully asynchronous · 15b42301
      Martin Afanasjew authored
      
      If analytics are enabled and `brew` is used in a command substitution
      context, e.g. `brew search` for tab completion, the result is that even
      though the Google Analytics `curl` process runs in the background it
      still is attached to the captured `stdout`, thus could theoretically
      contribute to the result of the command substitution and consequently
      makes the command substitution block on the completion of this process.
      Redirecting `stdout` (and `stderr` for good measure) to `/dev/null`
      makes this process truly asynchronous in these contexts.
      
      Furthermore, even if the process is in the background, it is still
      included in the shell's job list and thus shell internals like `wait`
      (used in `cmd/update.sh`) have to wait on this process, even if they
      never intended to do so. Removing the analytics process from the job
      list via `disown` avoids this unintended effect.
      
      Fixes #29.
      
      Closes #34.
      
      Signed-off-by: default avatarMartin Afanasjew <martin@afanasjew.de>
      15b42301
    • Martin Afanasjew's avatar
      test-bot: fix access to relocated method · 37b817ed
      Martin Afanasjew authored
      Fix bug introduced in a2c23dfe. Moving
      this method apparently made it inaccessible from `Homebrew::Step`.
      37b817ed
    • Martin Afanasjew's avatar
      test-bot: fix undefined method error · a2c23dfe
      Martin Afanasjew authored
      The method `fix_encoding!` is private to `Homebrew::Step` but is also
      required by the `Homebrew.sanitize_output_for_xml` method for truncating
      overly long logs. Move `fix_encoding!` into the `Homebrew` module to
      make it accessible from both this method and the `Homebrew::Step` class.
      
      This amends commit 343091c8.
      a2c23dfe
    • Dominyk Tiller's avatar
      audit: require plist_options when using plist · a9c0361a
      Dominyk Tiller authored
      
      Closes #19.
      
      Signed-off-by: default avatarDominyk Tiller <dominyktiller@gmail.com>
      a9c0361a
    • Dominyk Tiller's avatar
      test_cmd_audit: add plist test · 776a73da
      Dominyk Tiller authored
      776a73da
    • Dominyk Tiller's avatar
      audit: check plist placement · 149334d8
      Dominyk Tiller authored
      149334d8
Loading