dnf5 icon indicating copy to clipboard operation
dnf5 copied to clipboard

dnf5 in installroot with no repos does not mention the REPOSDIR path in the error message

Open glum23 opened this issue 1 year ago • 2 comments

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).

glum23 avatar Mar 19 '24 12:03 glum23

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.

ppisar avatar Mar 20 '24 07:03 ppisar

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

glum23 avatar Mar 20 '24 11:03 glum23