richardphibel / rpms / dnf

Forked from rpms/dnf 2 years ago
Clone
Blob Blame History Raw
From c2e4901cec947e5be2e5ff5afa22691841d00bdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hr=C3=A1zk=C3=BD?= <lhrazky@redhat.com>
Date: Tue, 10 Nov 2020 13:46:57 +0100
Subject: [PATCH] Revert "Fix --setopt=cachedir writing outside of installroot"

This reverts commit 70fffff61f7a006d406b46adc592d21a685c12a8.

The commit breaks resetting excludes with an empty --exclude= CLI switch
if the excludes were set in the config file.
---
 dnf/cli/cli.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
index b5f7bca07b..5878c2aa15 100644
--- a/dnf/cli/cli.py
+++ b/dnf/cli/cli.py
@@ -974,6 +974,8 @@ def configure(self, args, option_parser=None):
 
         self.base.configure_plugins()
 
+        self.base.conf._configure_from_options(opts)
+
         self.command.configure()
 
         if self.base.conf.destdir: