Bug 1320220

Summary: repoquery --repo doesn't work
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: dnf-plugins-coreAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: jsilhan, mluscon, packaging-team-maint, pnemade, RadekHolyPublic, vmukhame
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-31 12:31:46 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 Jaroslav Škarvada 2016-03-22 15:14:52 UTC
Description of problem:
It seems there is no way how to query rawhide repo from e.g. f23.

Version-Release number of selected component (if applicable):
dnf-plugins-core-0.1.17-1.fc23.noarch

How reproducible:
Always

Steps to Reproduce:
1. dnf repoquery --disablerepo='*' --enablerepo=rawhide -q tcl
2. dnf repoquery --repoid=rawhide -q tcl

Actual results:
For 1:
tcl-1:8.6.4-1.fc23.i686
tcl-1:8.6.4-1.fc23.x86_64
For 2:
No result

Expected results:
For 1:
tcl-1:8.6.4-1.fc25.i686
tcl-1:8.6.4-1.fc25.x86_64
For 2:
tcl-1:8.6.4-1.fc25.i686
tcl-1:8.6.4-1.fc25.x86_64

Additional info:
IIRC this worked correctly from original repoquery. Also adding '--refresh' didn't help.

Comment 1 Jaroslav Škarvada 2016-03-22 15:17:32 UTC
Hmm, it seems tcl wasn't rebuilt for f25, nor f24, so closing.

Comment 2 Jaroslav Škarvada 2016-03-22 15:23:48 UTC
But it seems there is still some inconsitency:

$ dnf repoquery --repo=rawhide -q grep
usage: dnf [--allowerasing] [-b] [-C] [-c [config file]] [-d [debug level]]
           [--debugsolver] [--showduplicates] [-e ERRORLEVEL]
           [--rpmverbosity [debug level name]] [-q] [-v] [-y] [--assumeno]
           [--version] [--installroot [path]] [--enablerepo [repo]]
           [--disablerepo [repo]] [-x [package]] [--disableexcludes [repo]]
           [--repofrompath [repo,path]] [--noplugins] [--nogpgcheck]
           [--disableplugin [plugin]] [--color COLOR]
           [--releasever RELEASEVER] [--setopt SETOPTS] [--refresh] [-4] [-6]
           [--downloadonly] [-h]
Command line error: argument --repofrompath: bad format: rawhide

$ dnf repoquery --disablerepo='*' --enablerepo=rawhide -q grep
grep-0:2.22-6.fc23.x86_64
grep-0:2.24-1.fc25.x86_64

Why --repo=rawhide fails? Also the following fails:

dnf repoquery --enablerepo=rawhide --repo=rawhide -q grep
usage: dnf [--allowerasing] [-b] [-C] [-c [config file]] [-d [debug level]]
           [--debugsolver] [--showduplicates] [-e ERRORLEVEL]
           [--rpmverbosity [debug level name]] [-q] [-v] [-y] [--assumeno]
           [--version] [--installroot [path]] [--enablerepo [repo]]
           [--disablerepo [repo]] [-x [package]] [--disableexcludes [repo]]
           [--repofrompath [repo,path]] [--noplugins] [--nogpgcheck]
           [--disableplugin [plugin]] [--color COLOR]
           [--releasever RELEASEVER] [--setopt SETOPTS] [--refresh] [-4] [-6]
           [--downloadonly] [-h]
Command line error: argument --repofrompath: bad format: rawhide

From the man:
       --repo <repoid>
              Limit the resulting set only to packages from repo identified by <repoid>.  Can be used multiple times with accumulative effect.

Comment 3 Michal Luscon 2016-03-31 12:31:46 UTC
That's known issue #1260443. Please use --repoid in the meantime.