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
0cca4a39
Commit
0cca4a39
authored
Feb 25, 2014
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5255 yum: set disabled repos before enabled repos and fix the parameters used
parent
86d8c58b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
library/packaging/yum
+16
-17
No files found.
library/packaging/yum
View file @
0cca4a39
...
...
@@ -223,14 +223,14 @@ def is_available(module, repoq, pkgspec, conf_file, qf=def_qf, en_repos=[], dis_
else
:
myrepoq
=
list
(
repoq
)
for
repoid
in
dis_repos
:
r_cmd
=
[
'--disablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
for
repoid
in
en_repos
:
r_cmd
=
[
'--enablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
for
repoid
in
dis_repos
:
r_cmd
=
[
'--disablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
cmd
=
myrepoq
+
[
"--qf"
,
qf
,
pkgspec
]
rc
,
out
,
err
=
module
.
run_command
(
cmd
)
...
...
@@ -273,14 +273,13 @@ def is_update(module, repoq, pkgspec, conf_file, qf=def_qf, en_repos=[], dis_rep
else
:
myrepoq
=
list
(
repoq
)
for
repoid
in
en_repos
:
r_cmd
=
[
'--enablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
for
repoid
in
dis_repos
:
r_cmd
=
[
'--disablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
for
repoid
in
en_repos
:
r_cmd
=
[
'--enablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
cmd
=
myrepoq
+
[
"--pkgnarrow=updates"
,
"--qf"
,
qf
,
pkgspec
]
rc
,
out
,
err
=
module
.
run_command
(
cmd
)
...
...
@@ -319,14 +318,14 @@ def what_provides(module, repoq, req_spec, conf_file, qf=def_qf, en_repos=[], d
else
:
myrepoq
=
list
(
repoq
)
for
repoid
in
en_repos
:
r_cmd
=
[
'--enablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
for
repoid
in
dis_repos
:
r_cmd
=
[
'--disablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
for
repoid
in
en_repos
:
r_cmd
=
[
'--enablerepo'
,
repoid
]
myrepoq
.
extend
(
r_cmd
)
cmd
=
myrepoq
+
[
"--qf"
,
qf
,
"--whatprovides"
,
req_spec
]
rc
,
out
,
err
=
module
.
run_command
(
cmd
)
cmd
=
myrepoq
+
[
"--qf"
,
qf
,
req_spec
]
...
...
@@ -723,13 +722,13 @@ def ensure(module, state, pkgspec, conf_file, enablerepo, disablerepo,
dis_repos
=
disablerepo
.
split
(
','
)
if
enablerepo
:
en_repos
=
enablerepo
.
split
(
','
)
for
repoid
in
dis_repos
:
r_cmd
=
[
'--disablerepo=
%
s'
%
repoid
]
yum_basecmd
.
extend
(
r_cmd
)
for
repoid
in
en_repos
:
r_cmd
=
[
'--enablerepo'
,
repoid
]
yum_basecmd
.
extend
(
r_cmd
)
for
repoid
in
dis_repos
:
r_cmd
=
[
'--disablerepo'
,
repoid
]
r_cmd
=
[
'--enablerepo=
%
s'
%
repoid
]
yum_basecmd
.
extend
(
r_cmd
)
if
state
in
[
'installed'
,
'present'
,
'latest'
]:
...
...
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