dnf5
dnf5 copied to clipboard
dnf5 in installroot with no repos does not mention the REPOSDIR path in the error message
dnf5 called in installroot with no enabled repos does not mention the REPOSDIR path explicitly in the error message. This behavior has been requested and fixed for dnf4 in the past, see https://bugzilla.redhat.com/show_bug.cgi?id=1658579
There's also a test scenario "Installroot directory is listed when there are no repos" in the dnf/installroot.feature upstream test (currently disabled for dnf5).
A problem is that DNF5 does not have a single directory with repository configuration. It would have to list a list of directories. We will look how to improve error message.
It's the same for dnf4, a list of 3 dirs is provided in the error message, see https://github.com/rpm-software-management/ci-dnf-stack/blob/7b3dceba02a4d06fce92515ce873ccd44075705e/dnf-behave-tests/dnf/installroot.feature#L121