Bug 1389273

Summary: --releasever option is not working properly
Product: [Fedora] Fedora Reporter: Zuzana Svetlikova <zsvetlik>
Component: dnfAssignee: rpm-software-management
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: rawhideCC: mluscon, packaging-team-maint, pnemade, rpm-software-management, vmukhame, zsvetlik
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 12:57:48 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:

Description Zuzana Svetlikova 2016-10-27 10:31:25 UTC
Description of problem:
--releasever option doesn't work (properly)

Version-Release number of selected component (if applicable):
dnf-2.0.0-0-rc1.4.fc26
rpm-4.13.0-0-rc2.1.fc26

How reproducible:
always

Steps to Reproduce:
1. dnf info nodejs --releasever=24
2. # wrong output, repos not synced
3. dnf clean all
4. # repos sync, but output is still wrong

Actual results:
Repos don't sync, shows info for rawhide.
After dnf clean all repos sync, but dnf still shows info only for rawhide.

Expected results:
dnf syncs repos and shows correct info.

Additional info:

Comment 1 Michal Luscon 2016-11-22 15:51:39 UTC
Hi,

are you still able to reproduce this?

Comment 2 Zuzana Svetlikova 2017-02-01 12:55:23 UTC
Yes, this is still reproducible.

Comment 3 Igor Gnatenko 2017-02-01 12:57:48 UTC
$ dnf --releasever=24 --disablerepo=\* --enablerepo=fedora --enablerepo=updates info nodejs

DNF doesn't know differences between rawhide and released repos, it takes those which are enabled.