Ensure readall runs without API.
This commit is contained in:
parent
2d41fe8feb
commit
771193c80a
@ -38,6 +38,7 @@ module Homebrew
|
|||||||
def readall
|
def readall
|
||||||
args = readall_args.parse
|
args = readall_args.parse
|
||||||
|
|
||||||
|
Homebrew.with_no_api_env do
|
||||||
if args.syntax? && args.no_named?
|
if args.syntax? && args.no_named?
|
||||||
scan_files = "#{HOMEBREW_LIBRARY_PATH}/**/*.rb"
|
scan_files = "#{HOMEBREW_LIBRARY_PATH}/**/*.rb"
|
||||||
ruby_files = Dir.glob(scan_files).grep_v(%r{/(vendor)/})
|
ruby_files = Dir.glob(scan_files).grep_v(%r{/(vendor)/})
|
||||||
@ -56,7 +57,7 @@ module Homebrew
|
|||||||
raise UsageError, "`brew readall` needs a tap or `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!"
|
raise UsageError, "`brew readall` needs a tap or `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!"
|
||||||
end
|
end
|
||||||
|
|
||||||
Tap
|
Tap.select(&:installed?)
|
||||||
else
|
else
|
||||||
args.named.to_installed_taps
|
args.named.to_installed_taps
|
||||||
end
|
end
|
||||||
@ -65,4 +66,5 @@ module Homebrew
|
|||||||
Homebrew.failed = true unless Readall.valid_tap?(tap, **options)
|
Homebrew.failed = true unless Readall.valid_tap?(tap, **options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user