Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
81f2e43b
Commit
81f2e43b
authored
Mar 12, 2014
by
Daniel Jaouen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Homebrew._current_package_is_installed
parent
6748ef12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
library/packaging/homebrew
+8
-7
No files found.
library/packaging/homebrew
View file @
81f2e43b
...
...
@@ -360,14 +360,15 @@ class Homebrew(object):
self
.
message
=
'
Invalid
package
:
{
0
}.
'
.
format
(
self
.
current_package
)
raise
HomebrewException
(
self
.
message
)
rc
,
out
,
err
=
self
.
module
.
run_command
(
"{brew_path} list -m1 | grep -q '^{package}$'"
.
format
(
brew_path
=
self
.
brew_path
,
package
=
self
.
current_package
,
)
)
cmd
=
[
"{brew_path}"
.
format
(
brew_path
=
self
.
brew_path
),
"list"
,
"-m1"
,
]
rc
,
out
,
err
=
self
.
module
.
run_command
(
cmd
)
packages
=
[
package
for
package
in
out
.
split
(
'\n'
)
if
package
]
if
rc
==
0
:
if
rc
==
0
and
self
.
current_package
in
packages
:
return
True
else
:
return
False
...
...
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