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
590f64e3
Commit
590f64e3
authored
15 years ago
by
Max Howell
Browse files
Options
Downloads
Patches
Plain Diff
Don't error out if .DS_Store is in a keg
parent
20b7fa6e
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/extend/ARGV.rb
+4
-3
4 additions, 3 deletions
Library/Homebrew/extend/ARGV.rb
with
4 additions
and
3 deletions
Library/Homebrew/extend/ARGV.rb
+
4
−
3
View file @
590f64e3
...
...
@@ -42,9 +42,10 @@ module HomebrewArgvExtension
require
'keg'
@kegs
||=
downcased_unique_named
.
collect
do
|
name
|
d
=
HOMEBREW_CELLAR
+
name
raise
"
#{
name
}
is not installed"
if
not
d
.
directory?
or
d
.
children
.
length
==
0
raise
"
#{
name
}
has multiple installed versions"
if
d
.
children
.
length
>
1
Keg
.
new
d
.
children
[
0
]
dirs
=
d
.
children
.
select
{
|
pn
|
pn
.
directory?
}
rescue
[]
raise
"
#{
name
}
is not installed"
if
not
d
.
directory?
or
dirs
.
length
==
0
raise
"
#{
name
}
has multiple installed versions"
if
dirs
.
length
>
1
Keg
.
new
dirs
.
first
end
raise
KegUnspecifiedError
if
@kegs
.
empty?
@kegs
...
...
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