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
8277bf29
Commit
8277bf29
authored
Nov 19, 2013
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4898 from stoned/homebrew-install_options-fix
Fix homebrew module's install_options handling
parents
68afd9da
47072bfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
library/packaging/homebrew
+8
-8
No files found.
library/packaging/homebrew
View file @
8277bf29
...
...
@@ -116,13 +116,13 @@ def install_packages(module, brew_path, packages, options):
if
module
.
check_mode
:
module
.
exit_json
(
changed
=
True
)
cmd
=
[
brew_path
,
'install'
,
package
]
if
options
:
rc
,
out
,
err
=
module
.
run_command
([
brew_path
,
'install'
,
package
,
options
])
else
:
rc
,
out
,
err
=
module
.
run_command
([
brew_path
,
'install'
,
package
])
cmd
.
extend
(
options
)
rc
,
out
,
err
=
module
.
run_command
(
cmd
)
if
not
query_package
(
module
,
brew_path
,
package
):
module
.
fail_json
(
msg
=
"failed to install
%
s:
%
s"
%
(
package
,
out
.
strip
()))
module
.
fail_json
(
msg
=
"failed to install
%
s:
'
%
s'
%
s"
%
(
package
,
cmd
,
out
.
strip
()))
installed_count
+=
1
...
...
@@ -133,14 +133,14 @@ def install_packages(module, brew_path, packages, options):
def
generate_options_string
(
install_options
):
if
install_options
is
None
:
return
''
return
None
options
_str
=
''
options
=
[]
for
option
in
install_options
:
options
_str
+=
' --
%
s'
%
option
options
.
append
(
'--
%
s'
%
option
)
return
options
_str
.
strip
()
return
options
def
main
():
...
...
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