aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2011-11-21audit.rb: Check version strings by defaultCharlie Sharpsteen
Tired of telling people that version numbers are redundant. Just check it by default since the `--strict` flag to `brew audit` is not well advertised.
2011-11-20Delete temp directory created during brew doctorJonathan Grochowski
Running brew doctor creates a temporary directory in $HOMEBREW_TEMP or /tmp but does not clean it up afterwards. This patch deletes the directory created to prevent polluting $HOMEBREW_TEMP or /tmp with empty directories. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-18audit: check for ARGV.flag? in formulaeJack Nagel
We don't want single letter options like '-v' or '-d' to unintentionally trigger formula-specific options. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-16Don't include receipt in `brew list` outputCharlie Sharpsteen
Fixes Homebrew/homebrew#8615.
2011-11-16Don't write receipt for empty installsCharlie Sharpsteen
Fixes Homebrew/homebrew#8616.
2011-11-15audit: don't check duplicate URLsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-15Mercurial 1.9.3Adam Vandenberg
2011-11-14Add --fresh option to brew installCharlie Sharpsteen
When invoked, this option will ensure brew doesn't re-use any options from previous installs of a formula.
2011-11-14Hotfix for filtered_args breaking brew upgradeCharlie Sharpsteen
The `filtered_args` method added to the `FormulaInstaller` makes a call `ARGV.formulae`. Unfortunately, `ARGV.formulae` will throw a `FormulaUnspecifiedError` instead of returning an empty list. This patch avoids the issue by checking `ARGV.named.empty?` before calling `ARGV.formulae`. Fixes Homebrew/homebrew#8576.
2011-11-13info: display used options for installed formulaeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-13Hardwire multi_json backendCharlie Sharpsteen
The `multi_json` gem dynamically selects a JSON implementation from a list of candidates. Since we cannot control which gems are installed on a user's machine, this patch hardwires `multi_json` to use the included copy of `ok_json`. `ok_json` is a pure-Ruby JSON encoder/decoder that is bundled with `multi_json`. `ok_json` may not be as fast as other choices, but speed is not critical for our application. Closes Homebrew/homebrew#8574. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-13Add copyright notice for MultiJsonCharlie Sharpsteen
2011-11-13metadata: Use options from previous installsCharlie Sharpsteen
FormulaInstaller now loads the install recipt of a previous install and appends the `used_options` to ARGV before forking to build. This means `brew upgrade` will "remember" which options were invoked for the last install and re-use them. Fixes Homebrew/homebrew#5250.
2011-11-13metadata: Record installation optionsCharlie Sharpsteen
Adds a new class called `Tab` that acts as a recipt for install options. A `Tab` can be serialized to a JSON file for future reference.
2011-11-13Vendor Library: multi-json 1.0.3Charlie Sharpsteen
Multi-JSON is a library that provides encode/decode support for casting Ruby objects to JSON strings and back again. This version of the library has been tested against ruby versions 1.8.6 and later. Having a JSON encoder/decoder in the toolbox helps now that the GitHub API only returns results in JSON format.
2011-11-13formula_installer.rb: Pre-process ARGV before forkCharlie Sharpsteen
`ARVG` is now filtered before the formula installer forks a new process. This allows a chance to do things like strip out `--HEAD` flags for formulae that weren't explicitly passed as arguments but came in as dependencies. Fixes Homebrew/homebrew#7724.
2011-11-10doctor: check_git_status in correct locationJack Nagel
This would silently fail if HOMEBREW_REPOSITORY != HOMEBREW_PREFIX, which is obviously a valid Homebrew setup. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-10doctor: document curl/terminal width issueJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-10doctor: warn about wide terminalsJack Nagel
A terminal width of 262 or greater can trigger a buffer overflow in curl's progress bar code, resulting in a segfault and aborted downloads. Warn about this. cf Homebrew/homebrew#8521. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-10doctor: minor grammatical fixJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-07cleanup: add an option to perform a 'dry run'Jack Nagel
Sometimes you want to know what `brew cleanup` will do before it actually removes anything. Introduce a '-n' option (chosen to match other UNIX tools) to do this. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-02audit: check for build_universal? calls if --universal unusedOleg Oshmyan
Closes Homebrew/homebrew#8123. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-02audit: check for empty sha256 checksumsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-22Remove debian mirror check; it is just noiseAdam Vandenberg
2011-10-22Add UnsafeSubversionDownloadStrategyMisty De Meo
There was an UnsafeSubversionDownloadStrategy in a single formula before, but a) it broke against later changes to SubversionDownloadStrategy, and b) wasn't available to other formula. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-10-18doctor: correctly detect CLICOLOR_FORCEJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-18audit: complain more about tabsAdam Vandenberg
2011-10-15audit: check mirror URLsJack Nagel
This will actually throw some possibly unwanted warnings, e.g. whining about using mirrors.kernel.org for Debian software; we might only want that warning for the default URL. Perhaps mirrors deserve their own audit_formula_mirrors, but rather than duplicate code, let's just check them against the standard criteria for now. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-14add Xcode to the blacklistMisty De Meo
Closes Homebrew/homebrew#8106. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-10doctor: check git versionJack Nagel
Checking out over HTTP/HTTPS from GitHub requires git 1.6.6, as GitHub only allows Smart HTTP transport. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-10Add an attr_reader for 'head'Jack Nagel
This allows `brew audit` to inspect the head URLs, for example; until now, that check was failing silently. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-09fetch: use correct sha256 instance variableJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-06cleaner: correctly obey HOMEBREW_KEEP_INFOJack Nagel
The advertised default is that anything in share/info is removed unless the user sets HOMEBREW_KEEP_INFO, but we've actually been installing the files *unless* the variable is set. To illustrate: $ unset HOMEBREW_KEEP_INFO $ brew install -v wdiff [...] ln /usr/local/share/locale/af/LC_MESSAGES/wdiff-gnulib.mo ln /usr/local/share/info/wdiff.info ln /usr/local/share/info/dir ==> Summary [...] $ HOMEBREW_KEEP_INFO=1 brew install -v wdiff ln /usr/local/share/locale/af/LC_MESSAGES/wdiff-gnulib.mo ==> Summary [...] Obviously not what we wanted. Closes Homebrew/homebrew#7989. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-04formula.rb: Don't attempt to mirror unstable URLsCharlie Sharpsteen
If a build is being influenced by an option such as `--HEAD`. Don't attempt mirrors if a download fails. Fixes Homebrew/homebrew#7971.
2011-10-04pathname.rb: Fix spelling for permssionsDustin Koupal
Closes Homebrew/homebrew#7970. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-03Fix :sha spec so that it actually checks out the SHADaniel Bingham
:sha was used to prevent the "--depth" option to git clone, but was never actually used to checkout the SHA. Closes Homebrew/homebrew#7859. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-03doctor: warn about expired SSL certs on LeopardJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-02audit: improve SF 'use_mirror' detectionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-28audit: match #{prefix}/libexec and prefix+'libexec'Jack Nagel
These were being picked up as just "#{prefix}/lib" and prefix+'lib' due to the eagerness of the regex. Reordering "lib" and "libexec" will take care of it; I couldn't think of a more clever solution. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-27doctor: remove redundant sentenceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21update: correct failing testsJack Nagel
Commit dec4b73aa0 ("Allow `brew update --rebase`") changed the format of the `git pull` command slightly, introducing an extra space (to allow for the --rebase option), so let's update the test expectations for this. We still need to write tests for '--rebase', but in the meantime they once again pass for the normal case. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21Correctly parse ImageMagick bottle versionJack Nagel
Commit 2695821e98 ("Only use the bottle if its version is up-to-date") essentially broke the ImageMagick bottle, because the version parsing logic returns "1" as the bottle version. Fixing this requires only a slight modification to the bottle URL regex; includes a test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21audit: recognize options used with 'ARGV.flag?'Jack Nagel
A few formula use ARGV.flag? instead of ARGV.include?. This made `audit` recognize a few undocumented instances of a '--devel' option, but we can just ignore that like '--HEAD' for now, and change the behavior if we decide they need to be documented explicitly in each formula. cf. Homebrew/homebrew#7456. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19doctor: only check git status if repository existsJack Nagel
Closes Homebrew/homebrew#7722. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-20More docs for `brew create` generated formula testsMax Howell
To assist those new to stuff.
2011-09-19formula.rb: Move cache dir creation to fetchCharlie Sharpsteen
So that the cache directory will get created if the user runs `brew fetch` instead of `brew install` as the first command.
2011-09-20Allow `brew update --rebase`Max Howell
2011-09-19Only try mirrors for CurlDownloadStrategiesMax Howell
Also adjust output text slightly for prettiness. A possibly useful side effect here is safe_system has a defined Exception (subclassing RuntimeError) now.
2011-09-19Revert "Pretty-print the "Trying a mirror" message"Jack Nagel
This reverts commit af8e3b5aeacdb10a412560e131d631ba733a8346. Sorry for the noise. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19Pretty-print the "Trying a mirror" messageJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>