Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cachedir relative to installroot
Like `logdir`, the `cachedir` configuration option should be treated as relative to the installroot, unless it is specified on the command line via --setopt=cachedir=/path/to/cachedir. This is the behavior of the cachedir with DNF 4. Currently, the host cache directory is used by default, conflicting with what our docs say (man 7 dnf5-installroot): "cachedir, log files, releasever, and gpgkey are taken from or stored in the installroot." After this change, the default cachedir is $installroot/var/cache/libdnf5, which is consistent with the docs. For https://bugzilla.redhat.com/show_bug.cgi?id=2256945
- Loading branch information