Blob Blame History Raw
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
Subject: [PATCH 08/10] rpm: Reenable disable_excludes for dnf5

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
-- 
2.37.3