Fix call to _get_repo_options()

Had forgotten to pass fromrepo along with the kwargs dict
This commit is contained in:
Erik Johnson 2013-03-10 23:57:17 -05:00
parent 4e4e240c5e
commit e144df7d30

View File

@ -79,7 +79,7 @@ def _get_repo_options(**kwargs):
repo_arg = '' repo_arg = ''
if fromrepo: if fromrepo:
log.info('Restricting install to repo "{0}"'.format(fromrepo)) log.info('Restricting to repo "{0}"'.format(fromrepo))
repo_arg = '--disablerepo="*" --enablerepo="{0}"'.format(fromrepo) repo_arg = '--disablerepo="*" --enablerepo="{0}"'.format(fromrepo)
else: else:
repo_arg = '' repo_arg = ''
@ -316,7 +316,7 @@ def install(name=None,
log.warning('"version" parameter will be ignored for muliple ' log.warning('"version" parameter will be ignored for muliple '
'package targets') 'package targets')
repo_arg = _get_repo_options(**kwargs) repo_arg = _get_repo_options(fromrepo=fromrepo, **kwargs)
old = list_pkgs() old = list_pkgs()
downgrade = [] downgrade = []