Bug 1658579

Summary: Be explicite about the REPODIR used in the Error message.
Product: Red Hat Enterprise Linux 8 Reporter: Karel Srot <ksrot>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: medium Docs Contact:
Priority: low    
Version: 8.0CC: dmach, james.antill
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-4.2.6-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 22:20:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Srot 2018-12-12 12:44:18 UTC
Description of problem:

Per bug 1657150.

# yum install aide --installroot=/tmp/root --releasever=/
Error: There are no enabled repos.

In case I would delete /tmp/root/etc/yum.repos.d directory the command would pass. This is expdected behaviour, however it would be great to alter the error message to
  Error: There are no enabled repos in $REPOSDIR
to make the fact that there was an attempt to read repos from the installroot directory.

Comment 1 Jaroslav Mracek 2019-04-09 19:58:44 UTC
I create a patch that enhanced message about absence of enabled repositories - https://github.com/rpm-software-management/dnf/pull/1376.

Comment 6 errata-xmlrpc 2019-11-05 22:20:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:3583