Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
b9c79699
Commit
b9c79699
authored
10 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Cache result of ARGV.verbose? on the stack
parent
a3409a17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/formula.rb
+4
-3
4 additions, 3 deletions
Library/Homebrew/formula.rb
with
4 additions
and
3 deletions
Library/Homebrew/formula.rb
+
4
−
3
View file @
b9c79699
...
...
@@ -493,10 +493,11 @@ class Formula
# Pretty titles the command and buffers stdout/stderr
# Throws if there's an error
def
system
cmd
,
*
args
verbose
=
ARGV
.
verbose?
# remove "boring" arguments so that the important ones are more likely to
# be shown considering that we trim long ohai lines to the terminal width
pretty_args
=
args
.
dup
if
cmd
==
"./configure"
and
not
ARGV
.
verbose
?
if
cmd
==
"./configure"
and
not
verbose
pretty_args
.
delete
"--disable-dependency-tracking"
pretty_args
.
delete
"--disable-debug"
end
...
...
@@ -511,7 +512,7 @@ class Formula
log
=
File
.
open
(
logfn
,
"w"
)
log
.
puts
Time
.
now
,
""
,
cmd
,
args
,
""
if
ARGV
.
verbose
?
if
verbose
rd
,
wr
=
IO
.
pipe
begin
pid
=
fork
do
...
...
@@ -538,7 +539,7 @@ class Formula
unless
$?
.
success?
log
.
flush
Kernel
.
system
"/usr/bin/tail"
,
"-n"
,
"5"
,
logfn
unless
ARGV
.
verbose
?
Kernel
.
system
"/usr/bin/tail"
,
"-n"
,
"5"
,
logfn
unless
verbose
log
.
puts
require
'cmd/config'
Homebrew
.
dump_build_config
(
log
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment