From 9244283122bd3167a36755dee5c3cc399ee1ac2f Mon Sep 17 00:00:00 2001 From: Richard C Isaacson Date: Fri, 7 Mar 2014 13:53:31 -0600 Subject: [PATCH] Spelling and formatting. --- library/packaging/yum | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/packaging/yum b/library/packaging/yum index 09ce5b6dd60..15f086f6b81 100644 --- a/library/packaging/yum +++ b/library/packaging/yum @@ -110,7 +110,7 @@ EXAMPLES = ''' - name: remove the Apache package yum: name=httpd state=removed -- name: install the latest version of Apche from the testing repo +- name: install the latest version of Apache from the testing repo yum: name=httpd enablerepo=testing state=installed - name: upgrade all packages @@ -463,6 +463,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos): res['msg'] = '' res['rc'] = 0 res['changed'] = False + downgrade = False for spec in items: @@ -540,7 +541,7 @@ def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos): continue # downgrade - the yum install command will only install or upgrade to a spec version, it will - # not install an older version of an RPM even if specifed by the install spec. So we need to + # not install an older version of an RPM even if specified by the install spec. So we need to # determine if this is a downgrade, and then use the yum downgrade command to install the RPM. pkg_name = splitFilename(spec)[0] pkgs = is_installed(module, repoq, pkg_name, conf_file, en_repos=en_repos, dis_repos=dis_repos, is_pkg=True)