supermin/0001-rpm-Prefer-dnf-download-over-yumdownloader.patch
2015-04-03 14:23:58 +01:00

37 lines
1.2 KiB
Diff

From baa22e783c31a693d95a2b7dd951ccc23663b831 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Mon, 16 Feb 2015 08:41:17 +0000
Subject: [PATCH] rpm: Prefer 'dnf download' over 'yumdownloader'.
Now that https://bugzilla.redhat.com/show_bug.cgi?id=1157233 has
been fixed, we can use 'dnf download' in parallel safely.
NB This requires hawkey >= 0.5.4 and dnf >= 0.6.5.
*Earlier versions will not work reliably*
---
src/rpm.ml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/rpm.ml b/src/rpm.ml
index 838c109..4d31472 100644
--- a/src/rpm.ml
+++ b/src/rpm.ml
@@ -285,10 +285,10 @@ let rpm_get_all_files pkgs =
let rec fedora_download_all_packages pkgs dir =
let tdir = !settings.tmpdir // string_random8 () in
- if Config.yumdownloader <> "no" then
- fedora_download_all_packages_with_yum pkgs dir tdir
- else (* Config.dnf <> "no" *)
- fedora_download_all_packages_with_dnf pkgs dir tdir;
+ if Config.dnf <> "no" then
+ fedora_download_all_packages_with_dnf pkgs dir tdir
+ else (* Config.yumdownloader <> "no" *)
+ fedora_download_all_packages_with_yum pkgs dir tdir;
rpm_unpack tdir dir
--
2.3.1