Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
dc3e8b48
Unverified
Commit
dc3e8b48
authored
Apr 12, 2021
by
Mike McQuaid
Committed by
GitHub
Apr 12, 2021
Browse files
Merge pull request #11116 from MikeMcQuaid/software_spec_fixes
software_spec: GitHub Packages/Bintray fixes.
parents
9a376387
f866bab2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/software_spec.rb
View file @
dc3e8b48
...
...
@@ -13,6 +13,7 @@ require "patch"
require
"compilers"
require
"os/mac/version"
require
"extend/on_os"
require
"bintray"
class
SoftwareSpec
extend
T
::
Sig
...
...
@@ -313,9 +314,9 @@ class Bottle
path
,
resolved_basename
=
spec
.
path_resolved_basename
(
@name
,
checksum
,
filename
)
@resource
.
url
(
"
#{
spec
.
root_url
}
/
#{
path
}
"
,
select_download_strategy
(
spec
.
root_url_specs
))
@resource
.
downloader
.
resolved_basename
=
resolved_basename
if
resolved_basename
.
present?
@resource
.
version
=
formula
.
pkg_version
@resource
.
checksum
=
checksum
@resource
.
downloader
.
resolved_basename
=
resolved_basename
if
resolved_basename
.
present?
@prefix
=
spec
.
prefix
@cellar
=
cellar
@rebuild
=
spec
.
rebuild
...
...
@@ -437,7 +438,7 @@ class BottleSpecification
if
var
.
nil?
@root_url
||=
if
(
github_packages_url
=
GitHubPackages
.
root_url_if_match
(
Homebrew
::
EnvConfig
.
bottle_domain
))
github_packages_url
elsif
Homebrew
::
EnvConfig
.
bottle_domain
.
match?
(
Bintray
::
URL_REGEX
)
elsif
Homebrew
::
EnvConfig
.
bottle_domain
.
match?
(
::
Bintray
::
URL_REGEX
)
"
#{
Homebrew
::
EnvConfig
.
bottle_domain
}
/
#{
Utils
::
Bottles
::
Bintray
.
repository
(
tap
)
}
"
else
Homebrew
::
EnvConfig
.
bottle_domain
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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