aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.rb
AgeCommit message (Collapse)Author
2014-09-18Remove obsolete nil guardJack Nagel
This was added in 3a7a3619f7016c75c3e53e944221bf7f6354a63b to make the tests pass, but this method is now stubbed out in the tests, so we can assume $? will be non-nil.
2014-09-18Pass command and arg list into ErrorDuringExecution constructorJack Nagel
2014-08-12Set the remote config manuallyJack Nagel
See 5cd6b35 and 8eefd4e.
2014-07-31Handle tap file renames that remove a file from the formula directoryJack Nagel
2014-07-26Remove obsolete hacks from updater reportJack Nagel
2014-07-26Only populate the report with formula pathsJack Nagel
2014-07-26Switch from backticks to Utils.popen_readJack Nagel
2014-07-26Separate reading and parsing the diffJack Nagel
2014-07-25update: remove unused rename detectionJack Nagel
Right now this code only produces false positives. When we have real support for renames, we can implement it more carefully. Closes #31126.
2014-07-25update: simplify diff parsingJack Nagel
2014-07-06Remove redundant "which git" guardsJack Nagel
There is always a git executable on PATH due to the git wrapper in Library/Contributions/cmd. The wrapper will notify the user if there is not a real git installed.
2014-07-06Make tap_ref match similar code in updateJack Nagel
2014-07-06Escape paths in regexpsJack Nagel
2014-06-27Convert update report to use compositionJack Nagel
2014-06-27Simplify valid_formula_location? methodJack Nagel
2014-06-23Call original backtick using superJack Nagel
2014-06-23Pass repository path into the updaterJack Nagel
2014-06-20Use multiple argument form of systemJack Nagel
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-05-31Prefer Dir.glob when iterating over the resultJack Nagel
2014-05-14Taps: cleanup regexps around TapsTsukasa OMOTO
Closes #29139. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-03The \w character class already includes underscoreJack Nagel
Newer versions of Ruby issue a warning for repeated character classes.
2014-04-25Pass around only absolute paths when dealing with tapsJack Nagel
2014-04-25Build relative paths using resolved_path and relative_path_fromJack Nagel
2014-04-25Less code in begin clauseJack Nagel
2014-04-25Extract some boilerplate into an each_tap methodJack Nagel
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes #28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-01-03install, update: AlreadyTappedError never raised.Mike McQuaid
2013-12-14update: rewrite origin to point to Homebrew org.Mike McQuaid
2013-12-12Remove unused variablesJack Nagel
2013-12-02Fix tap migrationsJack Nagel
When a `brew update` pulls down additions to tap_migrations.rb and the removed formulae in the same update, the migrations will never run, because tap_migrations.rb is loaded before the update takes place. Fix this by loading it after the update.
2013-11-14update: add remaining status indicators to diff-tree regexpJack Nagel
As I understand it, we should never encounter these, but...
2013-11-14update: guard against nil in tap migrationsJack Nagel
2013-11-14Add file type change to git diff-tree regexpJack Nagel
Fixes #24286.
2013-11-01update: check if Cellar exists instead of factory.Mike McQuaid
Fixes #23881.
2013-10-30update: automatically tap migrated formulae.Mike McQuaid
When a formula is removed from core and installed let's tap it so users can get updates without caring which tap we want to put things in. This should allow us to migrate a lot of things to taps. Closes #23760.
2013-09-24update: handle realpath exception.Mike McQuaid
2013-09-24update: untap/retap formulae before/after pull.Mike McQuaid
This should fix problems like #19799 where we pull formulae from taps into core. I want to get something similar merged ASAP so we can pull GCC into core (see #20678). Closes #19799.
2013-09-10update: restore previous state when interruptedJack Nagel
Fixes #19460. Closes #22375.
2013-07-09Properly define tapped formulae in updatephinze
A tapped formula is a ruby file present: - in the root of the tap - in directory of the tap called Formula - in a directory of the tap called HomebrewFormula And nowhere else. This corrects an overzealous definition of tapped formula in the updater. (the correct definition has been in Pathname since e613cbe5783cea2abb8100b56c22126a1ab6b9f2) Refs #19743. Closes #21087. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-09Remove adamv-alt references.Adam Vandenberg
Closes #20364.
2013-03-16Fix `brew update` so that it doesn't show doublesPeter Aronoff
Under certain conditions, `brew update` will show doubles. It's a rare edge-case, but if you have a tap where the name of the formula is identical with the name of the insalled file, then you see output like this: ==> Updated Formulae aalib ssh-copy-id casperjs sshuttle jack telemachus/anytap/brew-any-tap mogenerator telemachus/anytap/brew-any-tap I believe this should fix that. Closes #18495. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-18Remove unused variablesJack Nagel
2013-02-18brew-update: show upgrade command on formula parameters.Mike McQuaid
Closes #17814.
2013-02-03update: abort if formula names are givenAdam Vandenberg
Closes #11154.
2013-01-06brew update: warn about adamv/homebrew-altAdam Vandenberg
2012-10-28brew-update: Guard non-directory files in TapsCharlie Sharpsteen
Skip any entries returned by `Dir["Library/Taps/*"].each` that are not directories.
2012-10-05pluralize the word 'Formula' in reportsChristian Schlensker
Closes #15321. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-01Error handling for individual tapsMax Howell
Possibly would help diagnose: #13853.
2012-05-07Unify 'which' and which_s' utility methodsJack Nagel
'which' only returns a Pathname or nil, and doesn't care about anything sent to stderr, so just silence it by default and combine the two methods. Closes #12115. Signed-off-by: Jack Nagel <jacknagel@gmail.com>