tap: write untapped setting only on manual untap

This commit is contained in:
Rylan Polster 2021-01-21 08:42:22 -05:00
parent 64816651d0
commit ecfad29347
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ module Homebrew
end
end
tap.uninstall
tap.uninstall manual: true
end
end
end

View File

@ -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