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
7216a2b1
Commit
7216a2b1
authored
Jul 04, 2013
by
Seth Vidal
Committed by
Michael DeHaan
Jul 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a '*' option for name to state=latest to do a global update
parent
27fcfe9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
library/packaging/yum
+13
-2
No files found.
library/packaging/yum
View file @
7216a2b1
...
...
@@ -544,9 +544,20 @@ def latest(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
pkg
=
None
basecmd
=
'update'
cmd
=
''
# groups, again
if
spec
.
startswith
(
'@'
):
pkg
=
spec
elif
spec
==
'*'
:
#update all
# use check-update to see if there is any need
rc
,
out
,
err
=
module
.
run_command
(
yum_basecmd
+
[
'check-update'
])
if
rc
==
100
:
cmd
=
yum_basecmd
+
[
basecmd
]
else
:
res
[
'results'
]
.
append
(
'All packages up to date'
)
continue
# dep/pkgname - find it
else
:
if
is_installed
(
module
,
repoq
,
spec
,
conf_file
,
en_repos
=
en_repos
,
dis_repos
=
dis_repos
):
...
...
@@ -574,8 +585,8 @@ def latest(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos):
continue
pkg
=
spec
cmd
=
yum_basecmd
+
[
basecmd
,
pkg
]
if
not
cmd
:
cmd
=
yum_basecmd
+
[
basecmd
,
pkg
]
if
module
.
check_mode
:
return
module
.
exit_json
(
changed
=
True
)
...
...
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