chantra / rpms / dnf

Forked from rpms/dnf 2 years ago
Clone

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

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