Bug 1266178 - dnf repoquery --installed overrides --whatrequires
Summary: dnf repoquery --installed overrides --whatrequires
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-24 17:06 UTC by Nick Coghlan
Modified: 2015-11-23 09:46 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 09:46:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nick Coghlan 2015-09-24 17:06:32 UTC
Description of problem:

After upgrading to the F23 beta, I wanted to check how many local packages were still relying on Python 2.7 vs 3.4. However, combining "--installed" with "--whatrequires" in dnf repoquery appears to be broken (more details below)


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

dnf-plugins-core-0.1.11-1.fc23.noarch
dnf-1.1.1-2.fc23.noarch

How reproducible:

Always

Steps to Reproduce:
1. run 'sudo dnf repoquery --installed | wc -l'
2. run 'sudo dnf repoquery --alldeps --whatrequires 'python3' --installed | wc -l'
3. run 'sudo dnf repoquery --alldeps --whatrequires 'python' --installed | wc -l'

Actual results:

All 3 commands report the same number (2620 in my case)

Expected results:

Latter two numbers are less than the total number of installed packages, and less than or equal to the results that come up when searching the full repo metadata:

$ sudo dnf repoquery --alldeps --whatrequires 'python3' | wc -l
1172
$ sudo dnf repoquery --alldeps --whatrequires 'python' | wc -l
3550

Additional info:

System was upgraded from F22 using the dnf-system-upgrade-plugin as the fedup implementation.

Comment 1 Honza Silhan 2015-10-02 10:02:39 UTC
we will fix it.

Comment 2 Michal Luscon 2015-11-23 09:46:05 UTC
Fixed in dnf-plugins-core-0.1.14-1.


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