supermin/0008-rpm-Reenable-disable_excludes-for-dnf5.patch

30 lines
1018 B
Diff
Raw Normal View History

2023-07-12 21:42:41 +00:00
From 2f3eae350aa89b8067201a8bb24ff830d0fd919c Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 22 Jun 2023 08:35:51 +0100
2023-11-10 11:03:54 +00:00
Subject: [PATCH 08/13] rpm: Reenable disable_excludes for dnf5
2023-07-12 21:42:41 +00:00
Updates: commit 92d5d7e8c27088fa3fb8e5e6e9c5b8d3209053d6
Thanks: Jan Kolarik
Link: https://github.com/rpm-software-management/dnf5/issues/581#issuecomment-1600682713
---
src/ph_rpm.ml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml
index e94f35f..783d1bb 100644
--- a/src/ph_rpm.ml
+++ b/src/ph_rpm.ml
@@ -501,7 +501,8 @@ and download_all_packages_with_dnf pkgs dir tdir =
(match !settings.packager_config with
| None -> ""
| Some filename -> sprintf " --config=%s" (quote filename))
- (if not is_dnf5 then " --disableexcludes=all" else "")
+ (if not is_dnf5 then " --disableexcludes=all"
+ else " --setopt=disable_excludes=*")
(quote tdir)
(quoted_list rpms) in
run_command cmd
--
2023-11-10 11:03:54 +00:00
2.42.0
2023-07-12 21:42:41 +00:00