dcavalca / rpms / dnf

Forked from rpms/dnf 2 years ago
Clone
Blob Blame History Raw
From 487b68b0aed495c7154a6b91ffef4452f4333cf7 Mon Sep 17 00:00:00 2001
From: Jaroslav Mracek <jmracek@redhat.com>
Date: Mon, 29 Oct 2018 16:53:53 +0100
Subject: [PATCH] Allow usage of -C and with modified cachedir (RhBug:1643129)

---
 dnf/cli/cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
index 521b3f3..ff7d80d 100644
--- a/dnf/cli/cli.py
+++ b/dnf/cli/cli.py
@@ -810,10 +810,10 @@ class Cli(object):
 
         # Read up configuration options and initialize plugins
         try:
-            self.base.conf._configure_from_options(opts)
             if opts.cacheonly:
                 self.base.conf.cachedir = self.base.conf.system_cachedir
                 self.demands.cacheonly = True
+            self.base.conf._configure_from_options(opts)
             self._read_conf_file(opts.releasever)
             self.base.conf._adjust_conf_options()
         except (dnf.exceptions.ConfigError, ValueError) as e:
--
libgit2 0.26.7