diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-08-13 17:35:57 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-08-13 17:35:57 -0400 |
commit | 285c8d454b2edb8cfd3aa2703eeb9ea77f7d4f64 (patch) | |
tree | e7c49526ca3a6d1f7543bcd913ba36f6c96eb396 /cobbler/action_reposync.py | |
parent | ab4f59336a3c6f74c4ac8d8fc856dbe2ef045bb0 (diff) | |
download | third_party-cobbler-285c8d454b2edb8cfd3aa2703eeb9ea77f7d4f64.tar.gz third_party-cobbler-285c8d454b2edb8cfd3aa2703eeb9ea77f7d4f64.tar.xz third_party-cobbler-285c8d454b2edb8cfd3aa2703eeb9ea77f7d4f64.zip |
Re-enable --resolve for yumdownloader since it works now (at least
in some places).
Diffstat (limited to 'cobbler/action_reposync.py')
-rw-r--r-- | cobbler/action_reposync.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py index 94c54a4..53cf4a3 100644 --- a/cobbler/action_reposync.py +++ b/cobbler/action_reposync.py @@ -129,10 +129,9 @@ class RepoSync: if not os.path.exists(dest_path): os.makedirs(dest_path) - # if we only want certain RPMs, use yumdownloader (likely more than once) - # FIXME: yumdownloader has a current bug where --resolve blows up - # removing --resolve until I get the email from bugzilla saying it's fixed. - cmd = "/usr/bin/yumdownloader -c %s --destdir=%s %s" %(temp_file, dest_path, " ".join(repo.rpm_list)) + # older yumdownloader sometimes explodes on --resolvedeps + # if this happens to you, upgrade yum & yum-utils + cmd = "/usr/bin/yumdownloader --resolve -c %s --destdir=%s %s" %(temp_file, dest_path, " ".join(repo.rpm_list)) print _("- %s") % cmd cmds.append(cmd) else: |