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
73b4ad36
Commit
73b4ad36
authored
4 years ago
by
miccal
Browse files
Options
Downloads
Patches
Plain Diff
cmd/update-report: consistency for formulae and casks
parent
9a63811e
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/cmd/update-report.rb
+6
-1
6 additions, 1 deletion
Library/Homebrew/cmd/update-report.rb
with
6 additions
and
1 deletion
Library/Homebrew/cmd/update-report.rb
+
6
−
1
View file @
73b4ad36
...
...
@@ -198,8 +198,10 @@ class Reporter
next
unless
dst
.
extname
==
".rb"
if
paths
.
any?
{
|
p
|
tap
.
cask_file?
(
p
)
}
# Currently only need to handle Cask deletion/migration.
case
status
when
"A"
# Have a dedicated report array for new casks.
@report
[
:AC
]
<<
tap
.
formula_file_to_name
(
src
)
when
"D"
# Have a dedicated report array for deleted casks.
@report
[
:DC
]
<<
tap
.
formula_file_to_name
(
src
)
...
...
@@ -446,6 +448,7 @@ class ReporterHub
end
dump_formula_report
:R
,
"Renamed Formulae"
dump_formula_report
:D
,
"Deleted Formulae"
dump_formula_report
:AC
,
"New Casks"
dump_formula_report
:MC
,
"Updated Casks"
dump_formula_report
:DC
,
"Deleted Casks"
end
...
...
@@ -462,6 +465,8 @@ class ReporterHub
"
#{
name
}
->
#{
new_name
}
"
when
:A
name
unless
installed?
(
name
)
when
:AC
name
unless
cask_installed?
(
name
)
when
:MC
,
:DC
name
=
name
.
split
(
"/"
).
last
cask_installed?
(
name
)
?
pretty_installed
(
name
)
:
name
...
...
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