tap: write untapped setting only on manual untap
This commit is contained in:
parent
64816651d0
commit
ecfad29347
@ -43,7 +43,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
tap.uninstall
|
tap.uninstall manual: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -363,7 +363,7 @@ class Tap
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Uninstall this {Tap}.
|
# Uninstall this {Tap}.
|
||||||
def uninstall
|
def uninstall(manual: false)
|
||||||
require "descriptions"
|
require "descriptions"
|
||||||
raise TapUnavailableError, name unless installed?
|
raise TapUnavailableError, name unless installed?
|
||||||
|
|
||||||
@ -386,7 +386,7 @@ class Tap
|
|||||||
Commands.rebuild_commands_completion_list
|
Commands.rebuild_commands_completion_list
|
||||||
clear_cache
|
clear_cache
|
||||||
|
|
||||||
return unless official?
|
return if !manual || !official?
|
||||||
|
|
||||||
untapped = self.class.untapped_official_taps
|
untapped = self.class.untapped_official_taps
|
||||||
return if untapped.include? name
|
return if untapped.include? name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user