diff options
author | Rob Lazzurs <rob@lazzurs.net> | 2009-03-06 15:44:54 +0000 |
---|---|---|
committer | Rob Lazzurs <rob@lazzurs.net> | 2009-03-06 15:44:54 +0000 |
commit | 38663ecd5469d5eedf51871821dd049038708366 (patch) | |
tree | 0bddf1212ea1519f2436960855448b9f69f1ab65 /cobbler | |
parent | 2df64c1b0764f682d04596d3c88716b63eda951a (diff) | |
download | cobbler-38663ecd5469d5eedf51871821dd049038708366.tar.gz cobbler-38663ecd5469d5eedf51871821dd049038708366.tar.xz cobbler-38663ecd5469d5eedf51871821dd049038708366.zip |
Add check for yum-utils version if -l flag is defined for yumreposync
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/action_check.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cobbler/action_check.py b/cobbler/action_check.py index 9edd89cd..a2885a28 100644 --- a/cobbler/action_check.py +++ b/cobbler/action_check.py @@ -126,6 +126,11 @@ class BootCheck: status.append(_("reposync is not installed, need for cobbler reposync, install/upgrade yum-utils?")) if not os.path.exists("/usr/bin/yumdownloader"): status.append(_("yumdownloader is not installed, needed for cobbler repo add with --rpm-list parameter, install/upgrade yum-utils?")) + if self.settings.yumreposync_flags.find("\-l"): + if self.checked_dist == "redhat" or self.checked_dist == "suse": + yum_utils_ver = sub_process.call("/usr/bin/rpmquery --queryformat=%{VERSION} yum-utils", shell=True, close_fds=True) + if yum_utils_ver < "1.1.17": + status.append(_("yum-utils need to be at least version 1.1.17 for reposync -l")) def check_name(self,status): """ |