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
097ce843
Commit
097ce843
authored
Feb 19, 2014
by
Daniel Jaouen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix homebrew linked/unlinked output.
parent
91ac44a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
library/packaging/homebrew
+22
-6
No files found.
library/packaging/homebrew
View file @
097ce843
...
@@ -626,9 +626,17 @@ class Homebrew(object):
...
@@ -626,9 +626,17 @@ class Homebrew(object):
if
opt
]
if
opt
]
rc
,
out
,
err
=
self
.
module
.
run_command
(
cmd
)
rc
,
out
,
err
=
self
.
module
.
run_command
(
cmd
)
self
.
changed_count
+=
1
self
.
changed
=
True
if
rc
==
0
:
self
.
message
=
'
Package
linked
:
{
0
}
'
.
format
(
self
.
current_package
)
self
.
changed_count
+=
1
self
.
changed
=
True
self
.
message
=
'
Package
linked
:
{
0
}
'
.
format
(
self
.
current_package
)
return
True
else
:
self
.
failed
=
True
self
.
message
=
'
Package
could
not
be
linked
:
{
0
}.
'
.
format
(
self
.
current_package
)
raise
HomebrewException
(
self
.
message
)
def
_link_packages
(
self
)
:
def
_link_packages
(
self
)
:
for
package
in
self
.
packages
:
for
package
in
self
.
packages
:
...
@@ -662,9 +670,17 @@ class Homebrew(object):
...
@@ -662,9 +670,17 @@ class Homebrew(object):
if
opt
]
if
opt
]
rc
,
out
,
err
=
self
.
module
.
run_command
(
cmd
)
rc
,
out
,
err
=
self
.
module
.
run_command
(
cmd
)
self
.
changed_count
+=
1
self
.
changed
=
True
if
rc
==
0
:
self
.
message
=
'
Package
unlinked
:
{
0
}
'
.
format
(
self
.
current_package
)
self
.
changed_count
+=
1
self
.
changed
=
True
self
.
message
=
'
Package
unlinked
:
{
0
}
'
.
format
(
self
.
current_package
)
return
True
else
:
self
.
failed
=
True
self
.
message
=
'
Package
could
not
be
unlinked
:
{
0
}.
'
.
format
(
self
.
current_package
)
raise
HomebrewException
(
self
.
message
)
def
_unlink_packages
(
self
)
:
def
_unlink_packages
(
self
)
:
for
package
in
self
.
packages
:
for
package
in
self
.
packages
:
...
...
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