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
42959363
Commit
42959363
authored
8 years ago
by
Mike McQuaid
Browse files
Options
Downloads
Patches
Plain Diff
bottle: allow forcing tap when not present.
parent
c3a8701d
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/dev-cmd/bottle.rb
+12
-6
12 additions, 6 deletions
Library/Homebrew/dev-cmd/bottle.rb
with
12 additions
and
6 deletions
Library/Homebrew/dev-cmd/bottle.rb
+
12
−
6
View file @
42959363
#: * `bottle` [`--verbose`] [`--no-rebuild`] [`--keep-old`] [`--skip-relocation`] [`--root-url=<root_url>`]:
#: * `bottle` [`--verbose`] [`--no-rebuild`] [`--keep-old`] [`--skip-relocation`] [`--root-url=<root_url>`]
[`--force-core-tap`]
:
#: * `bottle` `--merge` [`--no-commit`] [`--keep-old`] [`--write`]:
#: * `bottle` `--merge` [`--no-commit`] [`--keep-old`] [`--write`]:
#:
#:
#: Generate a bottle (binary package) from a formula installed with
#: Generate a bottle (binary package) from a formula installed with
...
@@ -134,8 +134,14 @@ module Homebrew
...
@@ -134,8 +134,14 @@ module Homebrew
return
ofail
"Formula not installed or up-to-date:
#{
f
.
full_name
}
"
return
ofail
"Formula not installed or up-to-date:
#{
f
.
full_name
}
"
end
end
unless
f
.
tap
tap
=
f
.
tap
return
ofail
"Formula not from core or any taps:
#{
f
.
full_name
}
"
unless
tap
if
ARGV
.
include?
(
"--force-core-tap"
)
tap
=
CoreTap
.
instance
else
return
ofail
"Formula not from core or any taps:
#{
f
.
full_name
}
"
end
end
end
if
f
.
bottle_disabled?
if
f
.
bottle_disabled?
...
@@ -152,7 +158,7 @@ module Homebrew
...
@@ -152,7 +158,7 @@ module Homebrew
return
ofail
"Formula has no stable version:
#{
f
.
full_name
}
"
return
ofail
"Formula has no stable version:
#{
f
.
full_name
}
"
end
end
if
ARGV
.
include?
"--no-rebuild"
if
ARGV
.
include?
(
"--no-rebuild"
)
||
!
f
.
tap
rebuild
=
0
rebuild
=
0
elsif
ARGV
.
include?
"--keep-old"
elsif
ARGV
.
include?
"--keep-old"
rebuild
=
f
.
bottle_specification
.
rebuild
rebuild
=
f
.
bottle_specification
.
rebuild
...
@@ -270,7 +276,7 @@ module Homebrew
...
@@ -270,7 +276,7 @@ module Homebrew
root_url
||=
ARGV
.
value
(
"root_url"
)
root_url
||=
ARGV
.
value
(
"root_url"
)
bottle
=
BottleSpecification
.
new
bottle
=
BottleSpecification
.
new
bottle
.
tap
=
f
.
tap
bottle
.
tap
=
tap
bottle
.
root_url
(
root_url
)
if
root_url
bottle
.
root_url
(
root_url
)
if
root_url
if
relocatable
if
relocatable
if
skip_relocation
if
skip_relocation
...
@@ -334,7 +340,7 @@ module Homebrew
...
@@ -334,7 +340,7 @@ module Homebrew
},
},
"bintray"
=>
{
"bintray"
=>
{
"package"
=>
Utils
::
Bottles
::
Bintray
.
package
(
f
.
name
),
"package"
=>
Utils
::
Bottles
::
Bintray
.
package
(
f
.
name
),
"repository"
=>
Utils
::
Bottles
::
Bintray
.
repository
(
f
.
tap
),
"repository"
=>
Utils
::
Bottles
::
Bintray
.
repository
(
tap
),
},
},
},
},
}
}
...
...
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