From 4fecb38e0ca6eac21b5093aa4122c597ce4f23e1 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 1 Nov 2007 18:32:33 -0400 Subject: Since some versions of yumdownloader don't support --resolve, allow people to remove it by moving it to the configuration file. By default, it will be there, but this provides a fix for those running OS's with an old version of yum/yumdownloader. If -resolve is not in settings, --rpmlist on "cobbler repo add" needs to include all dependencies for the packages listed, which could be a rather long list. --- cobbler/action_reposync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cobbler/action_reposync.py') diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py index 8cd738f..d49efd1 100644 --- a/cobbler/action_reposync.py +++ b/cobbler/action_reposync.py @@ -110,6 +110,8 @@ class RepoSync: # how we invoke yum-utils depends on whether this is RHN content or not. + + if not is_rhn: # this is the simple non-RHN case. @@ -138,7 +140,8 @@ class RepoSync: # older yumdownloader sometimes explodes on --resolvedeps # if this happens to you, upgrade yum & yum-utils - cmd = "/usr/bin/yumdownloader --resolve %s -c %s --destdir=%s %s" % (use_source, temp_file, dest_path, " ".join(repo.rpm_list)) + extra_flags = self.settings.yumdownloader_flags + cmd = "/usr/bin/yumdownloader %s %s -c %s --destdir=%s %s" % (extra_flags, use_source, temp_file, dest_path, " ".join(repo.rpm_list)) print _("- %s") % cmd cmds.append(cmd) else: -- cgit