chantra / rpms / dnf

Forked from rpms/dnf 2 years ago
Clone

Blame SOURCES/0002-Revert-Fix-setopt-cachedir-writing-outside-of-installroot.patch

997f37
From c2e4901cec947e5be2e5ff5afa22691841d00bdc Mon Sep 17 00:00:00 2001
997f37
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hr=C3=A1zk=C3=BD?= <lhrazky@redhat.com>
997f37
Date: Tue, 10 Nov 2020 13:46:57 +0100
997f37
Subject: [PATCH] Revert "Fix --setopt=cachedir writing outside of installroot"
997f37
997f37
This reverts commit 70fffff61f7a006d406b46adc592d21a685c12a8.
997f37
997f37
The commit breaks resetting excludes with an empty --exclude= CLI switch
997f37
if the excludes were set in the config file.
997f37
---
997f37
 dnf/cli/cli.py | 2 ++
997f37
 1 file changed, 2 insertions(+)
997f37
997f37
diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
997f37
index b5f7bca07b..5878c2aa15 100644
997f37
--- a/dnf/cli/cli.py
997f37
+++ b/dnf/cli/cli.py
997f37
@@ -974,6 +974,8 @@ def configure(self, args, option_parser=None):
997f37
 
997f37
         self.base.configure_plugins()
997f37
 
997f37
+        self.base.conf._configure_from_options(opts)
997f37
+
997f37
         self.command.configure()
997f37
 
997f37
         if self.base.conf.destdir: