Bug 1748841 - dnf: Bad id for repo when dnf variables are used inside repoid field of repo file
Summary: dnf: Bad id for repo when dnf variables are used inside repoid field of repo ...
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: Jaroslav Rohel
QA Contact: Jan Blazek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-04 09:30 UTC by Manu
Modified: 2020-02-14 07:28 UTC (History)
2 users (show)

Fixed In Version: dnf-4.2.17-3.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4620111 None None None 2019-11-28 20:05:57 UTC

Description Manu 2019-09-04 09:30:46 UTC
Description of problem:

When dnf variables are used inside the repoid field of repo file, the following error is thrown. 

	Bad id for repo: testa-$basearch-$releasever, byte = $ 5

The dnf variables are working fine on other fields of the repo file.

This has been reproduced on both RHEL 8 and Fedora 30

Version-Release number of selected component (if applicable):

dnf-0:4.0.9.2-5

Steps to Reproduce:

1.Create a repo file with dnf variables in the repoid field
	[test-$basearch-$releasever]
	Name=Test-$basearch-$releasever
	baseurl=file:///mnt/
	gpgcheck=0
	enabled=1
2.Run # dnf repolist

Actual results:

Bad id for repo: testa-$basearch-$releasever, byte = $ 5

Expected results:

The variables should be resolved to their values.

Additional info:

Repo files on RHEL 7 and RHEL 8 has no issue with usage of yum variables inside the repoid field

Comment 2 Jaroslav Rohel 2019-11-21 11:20:31 UTC
PR: https://github.com/rpm-software-management/dnf/pull/1537


Note You need to log in before you can comment on or make changes to this bug.