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
598c5e36
Commit
598c5e36
authored
8 years ago
by
Mike McQuaid
Browse files
Options
Downloads
Patches
Plain Diff
Tell people to report URL/tap deprecations to the tap.
Rather than Homebrew/brew or Homebrew/homebrew-core.
parent
f0249118
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/brew.rb
+8
-0
8 additions, 0 deletions
Library/Homebrew/brew.rb
Library/Homebrew/exceptions.rb
+3
-1
3 additions, 1 deletion
Library/Homebrew/exceptions.rb
Library/Homebrew/formulary.rb
+12
-0
12 additions, 0 deletions
Library/Homebrew/formulary.rb
with
23 additions
and
1 deletion
Library/Homebrew/brew.rb
+
8
−
0
View file @
598c5e36
...
@@ -138,6 +138,14 @@ rescue RuntimeError, SystemCallError => e
...
@@ -138,6 +138,14 @@ rescue RuntimeError, SystemCallError => e
onoe
e
onoe
e
$stderr
.
puts
e
.
backtrace
if
ARGV
.
debug?
$stderr
.
puts
e
.
backtrace
if
ARGV
.
debug?
exit
1
exit
1
rescue
MethodDeprecatedError
=>
e
Utils
::
Analytics
.
report_exception
(
e
)
onoe
e
if
e
.
issues_url
$stderr
.
puts
"If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):"
$stderr
.
puts
"
#{
Formatter
.
url
(
e
.
issues_url
)
}
"
end
exit
1
rescue
Exception
=>
e
rescue
Exception
=>
e
Utils
::
Analytics
.
report_exception
(
e
)
Utils
::
Analytics
.
report_exception
(
e
)
onoe
e
onoe
e
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/exceptions.rb
+
3
−
1
View file @
598c5e36
...
@@ -56,7 +56,9 @@ end
...
@@ -56,7 +56,9 @@ end
class
FormulaSpecificationError
<
StandardError
;
end
class
FormulaSpecificationError
<
StandardError
;
end
class
MethodDeprecatedError
<
StandardError
;
end
class
MethodDeprecatedError
<
StandardError
attr_accessor
:issues_url
end
class
FormulaUnavailableError
<
RuntimeError
class
FormulaUnavailableError
<
RuntimeError
attr_reader
:name
attr_reader
:name
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formulary.rb
+
12
−
0
View file @
598c5e36
...
@@ -151,6 +151,11 @@ class Formulary
...
@@ -151,6 +151,11 @@ class Formulary
FileUtils
.
rm_f
(
path
)
FileUtils
.
rm_f
(
path
)
curl
url
,
"-o"
,
path
curl
url
,
"-o"
,
path
super
super
rescue
MethodDeprecatedError
=>
e
if
url
=~
%r{github.com/([
\w
-]+)/homebrew-([
\w
-]+)/}
e
.
issues_url
=
"https://github.com/
#{
$1
}
/homebrew-
#{
$2
}
/issues/new"
end
raise
end
end
end
end
...
@@ -202,6 +207,13 @@ class Formulary
...
@@ -202,6 +207,13 @@ class Formulary
rescue
FormulaUnavailableError
=>
e
rescue
FormulaUnavailableError
=>
e
raise
TapFormulaUnavailableError
.
new
(
tap
,
name
),
""
,
e
.
backtrace
raise
TapFormulaUnavailableError
.
new
(
tap
,
name
),
""
,
e
.
backtrace
end
end
def
load_file
super
rescue
MethodDeprecatedError
=>
e
e
.
issues_url
=
formula
.
tap
.
issues_url
||
formula
.
tap
.
to_s
raise
end
end
end
class
NullLoader
<
FormulaLoader
class
NullLoader
<
FormulaLoader
...
...
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