Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
fe8ce9b7
Commit
fe8ce9b7
authored
Nov 26, 2020
by
Rylan Polster
Browse files
Migrate GNOME_DEVEL_ALLOWLIST
parent
de26310b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/formula_auditor.rb
View file @
fe8ce9b7
...
...
@@ -477,14 +477,6 @@ module Homebrew
[
user
,
repo
]
end
GNOME_DEVEL_ALLOWLIST
=
{
"libart"
=>
"2.3"
,
"gtk-mac-integration"
=>
"2.1"
,
"gtk-doc"
=>
"1.31"
,
"gcab"
=>
"1.3"
,
"libepoxy"
=>
"1.5"
,
}.
freeze
def
audit_specs
problem
"Head-only (no stable download)"
if
head_only?
(
formula
)
...
...
@@ -554,7 +546,7 @@ module Homebrew
problem
"Stable version URLs should not contain
#{
matched
}
"
when
%r{download
\.
gnome
\.
org/sources}
,
%r{ftp
\.
gnome
\.
org/pub/GNOME/sources}i
version_prefix
=
stable
.
version
.
major_minor
return
if
GNOME_DEVEL_ALLOWLIST
[
formula
.
name
]
==
version_prefix
return
if
tap_audit_exception
:gnome_devel_allowlist
,
formula
.
name
,
version_prefix
return
if
stable_url_version
<
Version
.
create
(
"1.0"
)
return
if
stable_url_minor_version
.
even?
...
...
Library/Homebrew/test/dev-cmd/audit_spec.rb
View file @
fe8ce9b7
...
...
@@ -1009,7 +1009,5 @@ module Homebrew
expect
(
fa
.
problems
).
to
be_empty
end
end
include_examples
"formulae exist"
,
described_class
::
GNOME_DEVEL_ALLOWLIST
.
keys
end
end
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment