dcavalca / rpms / dnf

Forked from rpms/dnf 2 years ago
Clone

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

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