Bug 1356926

Summary: Results of 'dnf repoquery --whatprovides' and 'dnf provides' don't match
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: dnfAssignee: Jaroslav Mracek <jmracek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: ignatenko, jmracek, jsilhan, mluscon, packaging-team-maint, pnemade, rpm-software-management, vmukhame
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: 2016-07-29 14:57:09 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 Jaroslav Škarvada 2016-07-15 09:48:55 UTC
Description of problem:
'dnf repoquery --whatprovides' and 'dnf provides' give different results, moreover the 'dnf provides' seems to take much longer time to complete, so it's probably doing different query. IIRC both yum commands worked the same.

Version-Release number of selected component (if applicable):
dnf-1.1.9-2.fc23.noarch

How reproducible:
Always

Steps to Reproduce:
1. dnf repoquery --whatprovides '/usr/share/icons/hicolor/256x256/apps'
2. dnf repoquery --whatprovides '/usr/share/icons/hicolor/256x256/apps/*'
3. dnf provides '/usr/share/icons/hicolor/256x256/apps/*'

Actual results:
1. nothing
2. nothing
3. list of packages

Expected results:
same results for 2 and 3

Additional info:

Comment 1 Honza Silhan 2016-07-18 11:22:02 UTC
We'll fix this

Comment 2 Jaroslav Mracek 2016-07-28 14:01:12 UTC
I create the pull-request: https://github.com/rpm-software-management/dnf/pull/551

Comment 3 Igor Gnatenko 2016-07-29 14:57:09 UTC
Merged as part of DNF 2.0 release.