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
797a07d5
Commit
797a07d5
authored
4 years ago
by
lionellloh
Committed by
Lionell
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
All tests adapted to pass
parent
14d18a97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/dev-cmd/audit.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/dev-cmd/audit.rb
Library/Homebrew/formula.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/formula.rb
Library/Homebrew/test/dev-cmd/audit_spec.rb
+3
-3
3 additions, 3 deletions
Library/Homebrew/test/dev-cmd/audit_spec.rb
with
5 additions
and
5 deletions
Library/Homebrew/dev-cmd/audit.rb
+
1
−
1
View file @
797a07d5
...
...
@@ -337,7 +337,7 @@ module Homebrew
end
if
non_standard_licenses
.
present?
problem
"Formula
#{
formula
.
name
}
contains non standard SPDX license:
#{
non_standard_licenses
}
"
problem
"Formula
#{
formula
.
name
}
contains non standard SPDX license:
#{
non_standard_licenses
}
.
"
end
return
unless
@online
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula.rb
+
1
−
1
View file @
797a07d5
...
...
@@ -2216,7 +2216,7 @@ class Formula
if
args
.
nil?
return
@licenses
else
@licenses
=
Array
(
args
)
@licenses
=
Array
(
args
)
unless
args
==
""
puts
@licenses
# license.
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/test/dev-cmd/audit_spec.rb
+
3
−
3
View file @
797a07d5
...
...
@@ -120,7 +120,7 @@ module Homebrew
RUBY
fa
.
audit_license
expect
(
fa
.
problems
.
first
).
to
match
"
#{
custom_spdx_id
}
i
s no
t a
standard SPDX license."
expect
(
fa
.
problems
.
first
).
to
match
"
Formula foo contain
s no
n
standard SPDX license
: [
\"
zzz
\"
]
."
end
it
"verifies that a license info is a standard spdx id"
do
...
...
@@ -160,8 +160,8 @@ module Homebrew
RUBY
fa
.
audit_license
expect
(
fa
.
problems
.
first
).
to
match
"License mismatch - GitHub license is: GPL-3.0, "
\
"but Formulae license states:
#{
standard_mismatch_spdx_id
}
."
expect
(
fa
.
problems
.
first
).
to
match
"License mismatch - GitHub license is:
[
\"
GPL-3.0
\"
]
, "
\
"but Formulae license states:
#{
Array
(
standard_mismatch_spdx_id
)
}
."
end
end
...
...
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