aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/tap.rb
AgeCommit message (Collapse)Author
2014-04-24Pass arguments instead of reopening PathnameJack Nagel
2014-04-24Using existing method to make tap symlinksJack Nagel
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes Homebrew/homebrew#28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-23Migrate apple-gcc42 back to homebrew/versions.Mike McQuaid
Closes Homebrew/homebrew#28418.
2014-02-23Remove unused variableJack Nagel
2014-02-08Use GitHub wrapper for private tap checkJack Nagel
2014-01-26Make `brew tap` error message more clearaereal
Closes Homebrew/homebrew#25813. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-01-03tap: never throw AlreadyTappedError.Mike McQuaid
Just make it a warning instead. Closes Homebrew/homebrew#25511. Closes Homebrew/homebrew#25617.
2013-12-14tap: change core formula tap naming.Mike McQuaid
2013-10-30Cleanup use of some global constants.Mike McQuaid
2013-10-21tap: use dedicated exception for already tapped.Mike McQuaid
2013-10-16tap: don't print warning for apple-gcc42 failure.Mike McQuaid
This should be a temporary workaround until we get a grip on some Mavericks/Xcode 5.0 issues with e.g. ghc and go (stuff in core that currently needs GCC at runtime). These formulae both have Clang fixes in development. Things that needs GCC at compile-time should be booted from core. References Homebrew/homebrew#22872. References Homebrew/homebrew-dupes#229
2013-04-14Only prune taps if taps exist.Adam Vandenberg
Closes Homebrew/homebrew#19192.
2013-04-02tap/untap: use Array#length, not #countMisty De Meo
Array#count was apparently introduced in 1.8.7.
2013-03-12Revert "Update `brew tap` to work without 'homebrew-'"Mike McQuaid
This reverts commit d72901f92b7385d44d8c980976db6a4336572e7e. References Homebrew/homebrew#18366. Closes Homebrew/homebrew#18432.
2013-03-12Update `brew tap` to work without 'homebrew-'Peter Aronoff
Currently `brew tap` only works on repos with 'homebrew-' in their name. This version tries the repo name as is and then falls back to try 'homebrew-repo' only if that fails. I've also tweaked the regex in tap_args to allow '-' in repo names. The previous regex required a match on \w. This made it impossible for people to tap repos with names like 'username/why-not'. Closes Homebrew/homebrew#18366. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-04tap: adjust formula count for unsymlinked filesMisty De Meo
Relying on the output of `tapped` results in ignoring formulae which already exist in core, with messages like "Tapped 0 formula" for non-empty taps.
2013-02-01Update `tap --repair` function to ignore non-directory files in Library/Taps/Elliot Saba
Closes Homebrew/homebrew#17518. Closes Homebrew/homebrew#17511. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-07`brew tap` by itself handles dashes in usernamesMax Howell
This stuff sucks. I'd like to just replace the dash with a directory division or tilde character. But this makes the code even more complicated, unless we can figure out how to migrate the taps.
2012-08-07Print an appropriate message if the tapped repository appears to be privateStafford Brunk
Closes Homebrew/homebrew#12247. Closes Homebrew/homebrew#12244. Signed-off-by: Max Howell <mxcl@me.com>
2012-08-04`brew tap --repair`Max Howell
Removes dead symlinks in Formula and re-symlinks all Taps. Closes Homebrew/homebrew#11565.
2012-08-04Tap users can have dashes, adjust regexMax Howell
Repos can't at this point. Hard to easily fix so avoiding it until 2.0 or until someone moans enough.
2012-05-13Use 'which' helper method moreJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-30brew tap: allow dashes in GitHub usernamesMisty De Meo
2012-03-18Special case Homebrew organization tapsMax Howell
We allow homebrew/dupes for instance, rather than Homebrew/dupes. Because nobody likes shifting in the terminal. In the process of doing this I discovered some case-insensitive filesystem bugs we have avoided before because I had the foresight to mandate lowercase in formula names. GitHub considers Homebrew and homebrew to be different (even though you can't create both). So we had to allow case insensitivity in tap input. I have made it now so the resulting directory however is lowercased, neatly avoiding the issue. And so we also downcase tap arguments when applying them to tap directories or formula.
2012-03-18Make the tapping already there step actually workMax Howell
For when the symlink for a tap already exists and points to the thing we are about to symlink. This can happen, mostly because my code has sucked, but since the filesystem can be edited by the user at whim, it's possible then too.
2012-03-17Report correct conflicting tapMax Howell
Fixes: $ brew tap adamv/alt ...blah blah blah.. $ brew tap josegonzalez/php ...blah blah blah... Warning: Could not tap josegonzalez/php/php over mxcl/master/php Where it should be "over adamv/alt/php".
2012-03-17Plain `brew tap` doesn't error if no Library/TapsMax Howell
Fixes Homebrew/homebrew#10994.
2012-03-16Output tapped formula account properlyMax Howell
2012-03-16Don't break if symlink already exists during tapMax Howell
This shouldn't happen but is possible and we should handle it. Also added some puts when tapping/untapping.
2012-03-16HOMEBREW_LIBRARYMax Howell
I got fed up writing HOMEBREW_REPOSITORY/"Library" and also correcting mistakes when I did HOMEBREW_PREFIX instead.
2012-03-16Pathname.atomic_writeMax Howell
2012-03-16Better conflict warnings when tappingMax Howell
2012-03-16Link new tapped formula during brew updateMax Howell
Required me to spoil tap's code. All in the name of DRY! Alas!
2012-03-16canonical_name can resolve tapsMax Howell
2012-03-16Prevent tapped symlinks showing up in git statusMax Howell
The symlinks taps write to Formula show up in git status, but this trick prevents this. brew-(un)tap maintain a .gitignore in Formula that contains all the symlinks brew-tap creates. We add the .gitignore to the root .gitignore and TADA! Magic.
2012-03-16`brew tap` and `brew untap`Max Howell