Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix up yum state=latest with pkg groups #806

Merged
merged 3 commits into from
Aug 8, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions library/yum
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def latest(module, items, repoq, yum_basecmd):

for spec in items:
pkg = None

basecmd = 'update'
# groups, again
if spec.startswith('@'):
pkg = spec
Expand Down Expand Up @@ -349,10 +349,10 @@ def ensure(module, state, pkgspec, conf_file):
items = pkgspec.split(',')

yum_basecmd = '%s -d 1 -y ' % yumbin
repoq = '%s --plugins --quiet -q ' % repoquery
repoq = '%s --show-duplicates --plugins --quiet -q ' % repoquery
if conf_file and os.path.exists(conf_file):
yum_basecmd = '%s -c %s -d 1 -y' % (yumbin, conf_file)
repoq = '%s -c %s --plugins --quiet -q ' % (repoquery,conf_file)
repoq = '%s --show-duplicates -c %s --plugins --quiet -q ' % (repoquery,conf_file)

if state in ['installed', 'present']:
install(module, items, repoq, yum_basecmd)
Expand Down