dcavalca / rpms / dnf

Forked from rpms/dnf 2 years ago
Clone

Blame SOURCES/0009-Allow-usage-of--C-and-with-modified-cachedir-RhBug1643129.patch

66d091
From 487b68b0aed495c7154a6b91ffef4452f4333cf7 Mon Sep 17 00:00:00 2001
66d091
From: Jaroslav Mracek <jmracek@redhat.com>
66d091
Date: Mon, 29 Oct 2018 16:53:53 +0100
66d091
Subject: [PATCH] Allow usage of -C and with modified cachedir (RhBug:1643129)
66d091
66d091
---
66d091
 dnf/cli/cli.py | 2 +-
66d091
 1 file changed, 1 insertion(+), 1 deletion(-)
66d091
66d091
diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
66d091
index 521b3f3..ff7d80d 100644
66d091
--- a/dnf/cli/cli.py
66d091
+++ b/dnf/cli/cli.py
66d091
@@ -810,10 +810,10 @@ class Cli(object):
66d091
 
66d091
         # Read up configuration options and initialize plugins
66d091
         try:
66d091
-            self.base.conf._configure_from_options(opts)
66d091
             if opts.cacheonly:
66d091
                 self.base.conf.cachedir = self.base.conf.system_cachedir
66d091
                 self.demands.cacheonly = True
66d091
+            self.base.conf._configure_from_options(opts)
66d091
             self._read_conf_file(opts.releasever)
66d091
             self.base.conf._adjust_conf_options()
66d091
         except (dnf.exceptions.ConfigError, ValueError) as e:
66d091
--
66d091
libgit2 0.26.7
66d091