supermin/0002-dnf-Ignore-global-exclude-setting-when-downloading-p.patch
2016-01-12 19:08:38 +00:00

40 lines
1.3 KiB
Diff

From 53a113ee3ada2e2aea586a62c258e5bb46ca32d5 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 12 Jan 2016 19:02:44 +0000
Subject: [PATCH 2/2] dnf: Ignore global exclude setting when downloading
packages.
When you use `dnf download', it obeys the exclude settings in
`/etc/dnf/dnf.conf'. This is a problem if the user has excluded some
broken packages from being installed on the host, but still wants to
build libguestfs.
Use the --disableexcludes=all option to override this behaviour.
---
src/rpm.ml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/rpm.ml b/src/rpm.ml
index 1db47b6..cf6341c 100644
--- a/src/rpm.ml
+++ b/src/rpm.ml
@@ -1,5 +1,5 @@
(* supermin 5
- * Copyright (C) 2009-2014 Red Hat Inc.
+ * Copyright (C) 2009-2016 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -334,7 +334,7 @@ and fedora_download_all_packages_with_dnf pkgs dir tdir =
let rpms = pkgs_as_NA_rpms pkgs in
let cmd =
- sprintf "%s download%s%s --destdir %s %s"
+ sprintf "%s download%s%s --destdir=%s --disableexcludes=all %s"
Config.dnf
(if !settings.debug >= 1 then " -v" else " -q")
(match !settings.packager_config with
--
2.5.0