docs: Update tap-pin and tap-unpin disable explanations

I interpreted the existing message as meaning "you don't pin
a tap any more, rather you pin a specific formula from that
tap". I.e. the command still worked, but it had to be done
on a per-formula basis (eg. `brew tap-pin linuxbrew/xorg/mesa` instead
of just `brew tap-pin linuxbrew/xorg`)

IMO, this makes it clearer that the command itself is no longer
supported.
This commit is contained in:
Bob Wombat Hogg 2020-05-06 08:45:07 -04:00
parent c88d587b5b
commit 63e6632aa9
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ module Homebrew
end end
def tap_pin def tap_pin
odisabled "brew tap-pin user/tap", odisabled "the brew tap-pin command",
"fully-scoped user/tap/formula naming" "fully-scoped user/tap/formula naming when installing and in dependency references"
end end
end end

View File

@ -12,7 +12,7 @@ module Homebrew
end end
def tap_unpin def tap_unpin
odisabled "brew tap-pin user/tap", odisabled "the brew tap-unpin command",
"fully-scoped user/tap/formula naming" "fully-scoped user/tap/formula naming when installing and in dependency references"
end end
end end

View File

@ -491,8 +491,8 @@ module Formulary
if possible_pinned_tap_formulae.size == 1 if possible_pinned_tap_formulae.size == 1
selected_formula = factory(possible_pinned_tap_formulae.first, spec) selected_formula = factory(possible_pinned_tap_formulae.first, spec)
if core_path(ref).file? if core_path(ref).file?
odisabled "brew tap-pin user/tap", odisabled "the brew tap-pin command",
"fully-scoped user/tap/formula naming" "fully-scoped user/tap/formula naming when installing and in dependency references"
end end
selected_formula selected_formula
else else