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
|
||||
|
||||
tap.uninstall
|
||||
tap.uninstall manual: true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -363,7 +363,7 @@ class Tap
|
||||
end
|
||||
|
||||
# Uninstall this {Tap}.
|
||||
def uninstall
|
||||
def uninstall(manual: false)
|
||||
require "descriptions"
|
||||
raise TapUnavailableError, name unless installed?
|
||||
|
||||
@ -386,7 +386,7 @@ class Tap
|
||||
Commands.rebuild_commands_completion_list
|
||||
clear_cache
|
||||
|
||||
return unless official?
|
||||
return if !manual || !official?
|
||||
|
||||
untapped = self.class.untapped_official_taps
|
||||
return if untapped.include? name
|
||||
|
Loading…
x
Reference in New Issue
Block a user