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
eab71aae
Commit
eab71aae
authored
Aug 09, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #826 from skvidal/devel
make yum module work with list=pkgspec
parents
a7cd16a0
5c458b97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/yum
+3
-3
No files found.
library/yum
View file @
eab71aae
...
...
@@ -108,9 +108,9 @@ def repolist(repoq, qf="%{repoid}"):
def
list_stuff
(
conf_file
,
stuff
):
qf
=
"
%
{name}|
%
{epoch}|
%
{version}|
%
{release}|
%
{arch}|
%
{repoid}"
repoq
=
'
%
s --plugins --quiet -q '
%
repoquery
repoq
=
'
%
s --
show-duplicates --
plugins --quiet -q '
%
repoquery
if
conf_file
and
os
.
path
.
exists
(
conf_file
):
repoq
=
'
%
s -c
%
s --plugins --quiet -q '
%
(
repoquery
,
conf_file
)
repoq
=
'
%
s -c
%
s --
show-duplicates --
plugins --quiet -q '
%
(
repoquery
,
conf_file
)
if
stuff
==
'installed'
:
return
[
pkg_to_dict
(
p
)
for
p
in
is_installed
(
repoq
,
'-a'
,
qf
=
qf
)
if
p
.
strip
()
]
...
...
@@ -385,7 +385,7 @@ def main():
pkg
=
dict
(
aliases
=
[
'name'
]),
# removed==absent, installed==present, these are accepted as aliases
state
=
dict
(
default
=
'installed'
,
choices
=
[
'absent'
,
'present'
,
'installed'
,
'removed'
,
'latest'
]),
list
=
dict
(
choices
=
[
'installed'
,
'updates'
,
'available'
,
'repos'
,
'pkgspec'
]
),
list
=
dict
(),
conf_file
=
dict
(
default
=
None
),
)
)
...
...
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