Merge pull request #617 from jcollie/issue616

Fix issue #616 - incomplete merge of salt/modules/yumpkg.py
This commit is contained in:
Jeff Schroeder 2012-01-31 06:41:41 -08:00
commit 8b2c90528d

View File

@ -204,11 +204,6 @@ def install(pkgs, refresh=False, repo='', skip_verify=False):
if repo:
yb.repos.enableRepo(repo)
for opt in opts:
if '--nogpgcheck' in opt:
setattr(yb.conf, 'gpgcheck', False)
if opt.startswith('--enablerepo'):
yb.repos.enableRepo(arg.split('=')[1])
for pkg in pkgs:
try:
yb.install(name=pkg)