Commit Graph
25 Commits
Author SHA1 Message Date
Adam Vandenberg 26dfa2ccbc Only prune taps if taps exist.
Closes #19192.
2013-04-14 09:35:16 -07:00
Misty De Meo ebddb7d4d2 tap/untap: use Array#length, not #count
Array#count was apparently introduced in 1.8.7.
2013-04-02 16:28:46 -05:00
Mike McQuaid 2249062526 Revert "Update brew tap to work without 'homebrew-'"
This reverts commit d72901f92b.

References #18366.
Closes #18432.
2013-03-12 17:55:55 +00:00
Peter Aronoff d72901f92b Update brew tap to work without 'homebrew-'
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 #18366.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-12 12:32:49 +00:00
Misty De Meo 56669c1645 tap: adjust formula count for unsymlinked files
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-03-04 12:12:47 -06:00
Elliot Saba 040bfcf5b2 Update tap --repair function to ignore non-directory files in Library/Taps/
Closes #17518.
Closes #17511.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-01 18:36:38 -08:00
Max Howell 538e36a38a brew tap by itself handles dashes in usernames
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-07 14:24:09 -04:00
Stafford Brunk daf5275be4 Print an appropriate message if the tapped repository appears to be private
Closes #12247.
Closes #12244.

Signed-off-by: Max Howell <mxcl@me.com>
2012-08-07 14:24:09 -04:00
Max Howell 5eb06b9dc5 brew tap --repair
Removes dead symlinks in Formula and re-symlinks all Taps.

Closes #11565.
2012-08-04 15:11:47 -04:00
Max Howell 523e21fd6e Tap users can have dashes, adjust regex
Repos can't at this point. Hard to easily fix so avoiding it until 2.0 or until someone moans enough.
2012-08-04 15:11:47 -04:00
Jack Nagel 2fb94e4d9b Use 'which' helper method more
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-13 19:28:03 -05:00
Misty De Meo 87fd6f3372 brew tap: allow dashes in GitHub usernames 2012-04-30 14:02:23 -05:00
Max Howell 41b0e8583d Special case Homebrew organization taps
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-18 01:45:26 +00:00
Max Howell a190d47cd8 Make the tapping already there step actually work
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-18 01:14:00 +00:00
Max Howell 04243da198 Report correct conflicting tap
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-17 01:24:03 +00:00
Max Howell f15c647393 Plain brew tap doesn't error if no Library/Taps
Fixes #10994.
2012-03-17 00:04:43 +00:00
Max Howell d66e23ac4b Output tapped formula account properly 2012-03-16 22:08:55 +00:00
Max Howell 585df7a6ba Don't break if symlink already exists during tap
This shouldn't happen but is possible and we should handle it.

Also added some puts when tapping/untapping.
2012-03-16 21:06:18 +00:00
Max Howell 4ea9c055af HOMEBREW_LIBRARY
I got fed up writing HOMEBREW_REPOSITORY/"Library" and also correcting mistakes when I did HOMEBREW_PREFIX instead.
2012-03-16 21:06:18 +00:00
Max Howell fa215d34e9 Pathname.atomic_write 2012-03-16 21:06:17 +00:00
Max Howell 0ec3aefcfe Better conflict warnings when tapping 2012-03-16 21:06:17 +00:00
Max Howell b584043e63 Link new tapped formula during brew update
Required me to spoil tap's code. All in the name of DRY! Alas!
2012-03-16 21:06:17 +00:00
Max Howell 4247c60015 canonical_name can resolve taps 2012-03-16 21:06:15 +00:00
Max Howell a05a5fc8fb Prevent tapped symlinks showing up in git status
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 21:06:15 +00:00
Max Howell fb13b6a99e brew tap and brew untap 2012-03-16 21:06:15 +00:00