Bug 1326095

Summary: repoquery --whatsupplements doesn't work for langpacks (rich capability issue)?
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: dnf-plugins-coreAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: jsilhan, mluscon, packaging-team-maint, pnemade, RadekHolyPublic, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-12 03:13:50 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 Adam Williamson 2016-04-11 19:49:08 UTC
Per https://fedoraproject.org/wiki/QA:Testcase_langpacks_packages it's expected that `dnf repoquery --whatsupplements langpacks-fr` would return a list - e.g. including glibc-langpack-fr - but it returns nothing.

I suspect this may be because glibc-langpack-fr really supplements a rich capability:

glibc = 2.23.1-5.fc24 & (langpacks-fr | langpacks-fr_BE | langpacks-fr_CA | langpacks-fr_CH | langpacks-fr_FR | langpacks-fr_LU)

but obviously it's not realistic that someone would somehow know to type:

dnf repoquery --whatsupplements "glibc = 2.23.1-5.fc24 & (langpacks-fr | langpacks-fr_BE | langpacks-fr_CA | langpacks-fr_CH | langpacks-fr_FR | langpacks-fr_LU)"

and more to the point, even that doesn't work. So it seems like this is kind of un-queryable, or I missed the magic trick.

Is this fixable? If not, is there any way to provide the `dnf langinfo` feature of the old langpacks plugin?

Comment 1 Parag Nemade 2016-04-12 03:13:50 UTC
Thanks Adam for this bug but we already are tracking this issue in bug 1303311. Since we moved to weak dependencies approach to install langpacks, I created test case page on how to test it.

Ah wait what happened to my test case page. Ah you moved it and re-written!!

Okay no issues but I explicitly left the output blank as I am discussing this issue with DNF developers.

*** This bug has been marked as a duplicate of bug 1303311 ***

Comment 2 Adam Williamson 2016-04-12 03:26:13 UTC
well, i'd say the test could still say what *ought* to happen =) I can tweak it to note that that part is currently known broken, though, to avoid duplicate reports.

Comment 3 Parag Nemade 2016-04-12 03:28:29 UTC
Looks like its fixed now see comment  https://bugzilla.redhat.com/show_bug.cgi?id=1303311#c12