Bug 1404157

Summary: repoquery --srpm doesn't work
Product: [Fedora] Fedora Reporter: Igor Gnatenko <ignatenko>
Component: dnfAssignee: rpm-software-management
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: jmracek, mluscon, packaging-team-maint, rpm-software-management, sgallagh, vmukhame
Target Milestone: ---   
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-05-31 11:49:51 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 Igor Gnatenko 2016-12-13 08:51:53 UTC
from man:
  --srpm                operate on corresponding source RPM

From this I would assume that it is alias for `--arch=src --enablerepo='*-source'`.

However, it doesn't work:

[brain@x1carbon pitivi]$ sudo dnf repoquery --enablerepo=rawhide-source --arch=src --whatrequires meson
Last metadata expiration check: 0:00:00 ago on Tue Dec 13 09:51:04 2016 CET.
angelscript-0:2.31.1-3.fc26.src
gst-transcoder-0:1.8.2-1.fc26.src
gstreamer1-plugin-mpg123-0:1.10.0-3.fc26.src
pitivi-0:0.97.1-5.fc26.src
[brain@x1carbon pitivi]$ 

[brain@x1carbon pitivi]$ sudo dnf repoquery --srpm --whatrequires meson
enabling rpmfusion-nonfree-rawhide-source repository
enabling rpmfusion-free-rawhide-source repository
enabling rawhide-source repository
Last metadata expiration check: 0:00:23 ago on Tue Dec 13 09:51:04 2016 CET.
[brain@x1carbon pitivi]$

Comment 5 Honza Silhan 2016-12-19 13:56:14 UTC
FTR the current DNF repoquery is consistent with yum repoquery behavior - no results. We should fix it only if yum repoquery behavior was considered as a bug with combination of `--whatrequires`.

Valentina, do you think is it a bug in yum repoquery or expected behavior?

Comment 6 Fedora End Of Life 2017-02-28 10:46:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.