Bug 1755424

Summary: DNF backend doesn't apply all variable substitutions.
Product: Red Hat Enterprise Linux 8 Reporter: Pat Riehecky <riehecky>
Component: libdnfAssignee: Jaroslav Rohel <jrohel>
Status: CLOSED DUPLICATE QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: dmach, jrohel, klember, pasik
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1756382 (view as bug list) Environment:
Last Closed: 2020-02-10 13:30:07 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:
Bug Depends On:    
Bug Blocks: 1756382    

Description Pat Riehecky 2019-09-25 13:29:09 UTC
Description of problem:
PackageKit isn't correctly reading in all the vars from /etc/dnf/vars/ (and /etc/yum/vars/)


Version-Release number of selected component (if applicable):
PackageKit-1.1.12-2.el8

How reproducible:
100%

Steps to Reproduce:
1. Create a repo with a local variable in the url path
  example
  http://mirror.centos.org/$contentdir/$stream/AppStream/x86_64/os/repodata/repomd.xml

2. Define the variables in /etc/dnf/vars

3. dnf makecache

4. pkcon refresh

Actual results:
Fatal error: cannot update repo 'Stream-AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried; Last error: Status code: 404 for http://mirror.centos.org/$contentdir/$stream/AppStream/x86_64/os/repodata/repomd.xml

Expected results:
Variables are expanded in PackageKit in the same manner as dnf

Additional info:
https://github.com/hughsie/PackageKit/issues/339

Comment 1 Tomas Popela 2020-02-07 14:00:56 UTC
Looking at the upstream bug, it was fixed in libdnf with https://github.com/rpm-software-management/libdnf/pull/801. Reassigning to libdnf.

Comment 4 Jaroslav Rohel 2020-02-10 13:30:07 UTC

*** This bug has been marked as a duplicate of bug 1756382 ***

Comment 5 Red Hat Bugzilla 2024-01-06 04:26:48 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days