Fix brew style
This commit is contained in:
parent
9589416fd4
commit
e8b82bbe1e
@ -161,11 +161,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
@parser.public_send(method, *names, *wrap_option_desc(description)) do |value|
|
@parser.public_send(method, *names, *wrap_option_desc(description)) do |value|
|
||||||
odisabled "the `#{names.first}` switch", replacement unless replacement.nil?
|
odisabled "the `#{names.first}` switch", replacement unless replacement.nil?
|
||||||
value = if names.any? { |name| name.start_with?("--[no-]") }
|
value = true if names.none? { |name| name.start_with?("--[no-]") }
|
||||||
value
|
|
||||||
else
|
|
||||||
true
|
|
||||||
end
|
|
||||||
|
|
||||||
set_switch(*names, value: value, from: :args)
|
set_switch(*names, value: value, from: :args)
|
||||||
end
|
end
|
||||||
|
@ -2002,7 +2002,7 @@ class Formula
|
|||||||
bottle_spec.collector.each_key do |os|
|
bottle_spec.collector.each_key do |os|
|
||||||
collector_os = bottle_spec.collector[os]
|
collector_os = bottle_spec.collector[os]
|
||||||
os_cellar = collector_os[:cellar]
|
os_cellar = collector_os[:cellar]
|
||||||
os_cellar = os_cellar.is_a?(Symbol) ? os_cellar.inspect : os_cellar
|
os_cellar = os_cellar.inspect if os_cellar.is_a?(Symbol)
|
||||||
|
|
||||||
checksum = collector_os[:checksum].hexdigest
|
checksum = collector_os[:checksum].hexdigest
|
||||||
filename = Bottle::Filename.create(self, os, bottle_spec.rebuild)
|
filename = Bottle::Filename.create(self, os, bottle_spec.rebuild)
|
||||||
|
@ -103,15 +103,15 @@ class Sandbox
|
|||||||
ensure
|
ensure
|
||||||
seatbelt.unlink
|
seatbelt.unlink
|
||||||
sleep 0.1 # wait for a bit to let syslog catch up the latest events.
|
sleep 0.1 # wait for a bit to let syslog catch up the latest events.
|
||||||
syslog_args = %W[
|
syslog_args = [
|
||||||
-F $((Time)(local))\ $(Sender)[$(PID)]:\ $(Message)
|
"-F", "$((Time)(local)) $(Sender)[$(PID)]: $(Message)",
|
||||||
-k Time ge #{@start.to_i}
|
"-k", "Time", "ge", @start.to_i.to_s,
|
||||||
-k Message S deny
|
"-k", "Message", "S", "deny",
|
||||||
-k Sender kernel
|
"-k", "Sender", "kernel",
|
||||||
-o
|
"-o",
|
||||||
-k Time ge #{@start.to_i}
|
"-k", "Time", "ge", @start.to_i.to_s,
|
||||||
-k Message S deny
|
"-k", "Message", "S", "deny",
|
||||||
-k Sender sandboxd
|
"-k", "Sender", "sandboxd"
|
||||||
]
|
]
|
||||||
logs = Utils.popen_read("syslog", *syslog_args)
|
logs = Utils.popen_read("syslog", *syslog_args)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user