Add a dnf.conf, and use it by default

The new dnf.conf is very similar to the yum.conf, but because the
in-tree Mock config specifies to use DNF, we should track a dnf.conf
here as well and use it by default.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2018-05-30 13:05:57 -07:00
parent 7203329212
commit 3c52bbd7d7
3 changed files with 31 additions and 3 deletions
+2 -2
View File
@@ -60,8 +60,8 @@ AUTOSPEC_CONF = $(TOPLVL)/projects/common/conf/autospec.conf
# in "pkg-mapping" for cloning/pulling package repos.
USE_PACKAGE_MAPPING = yes
# Package manager config file. Default to the in-tree copy.
PM_CONF = $(TOPLVL)/projects/common/conf/yum.conf
# Package manager config file. Default to the in-tree copy of dnf.conf.
PM_CONF = $(TOPLVL)/projects/common/conf/dnf.conf
# Mock configuration file. Default to the in-tree copy.
MOCK_CONF = $(TOPLVL)/projects/common/conf/clear.cfg
+4 -1
View File
@@ -17,7 +17,10 @@ as a starting point if you need to.
* `clear.cfg`: default Mock configuration file used by various targets that
call out to Mock. Config variable: `MOCK_CONF`
* `yum.conf`: default package manager (YUM or DNF) configuration file, made
* `dnf.conf`: DNF conf for use as the package manager configuration file, made
available for the framework's local repo support. Config variable: `PM_CONF`
* `yum.conf`: YUM conf for use as the package manager configuration file, made
available for the framework's local repo support. Config variable: `PM_CONF`
* `koji.conf`: template Koji configuration file. It is installed by
+25
View File
@@ -0,0 +1,25 @@
[main]
cachedir=/var/cache/dnf
keepcache=1
debuglevel=1
logfile=/var/log/dnf.log
exactarch=1
obsoletes=1
gpgcheck=0
plugins=0
retries=10
installonly_limit=3
reposdir=/root/mash
[clear]
name=Clear
baseurl=https://cdn.download.clearlinux.org/current/x86_64/os/
enabled=1
gpgcheck=0
[clear-source]
name=Clear sources
failovermethod=priority
baseurl=https://cdn.download.clearlinux.org/current/source/SRPMS/
enabled=1
gpgcheck=0