Bug 2007139

Summary: asterisk expansion in --repo does not work
Product: [Fedora] Fedora Reporter: Miroslav Suchý <msuchy>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 34CC: amatej, dmach, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, 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: 2022-05-16 05:19:57 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 Miroslav Suchý 2021-09-23 08:41:06 UTC
Description of problem:
$ repoquery -q --releasever 33 --disableplugin=local --arch src '--repo=*-source' -a |grep vtun
does not work because the * is not expanded

This is a contradiction to 
$ repoquery -q --releasever 33 --disableplugin=local --arch src '--enablerepo=*-source' -a |grep vtun
vtun-0:3.0.4-11.fc33.src

Version-Release number of selected component (if applicable):
dnf-4.8.0-1.fc34.noarch

How reproducible:
always

Steps to Reproduce:
1. repoquery -q --releasever 33 --disableplugin=local --arch src '--repo=*-source' -a |grep vtun

Actual results:
No package found

Expected results:
vtun-0:3.0.4-11.fc33.src is found

Comment 1 Jaroslav Mracek 2021-09-25 17:42:49 UTC
The problem is in repoquery.py in

    @staticmethod
    def filter_repo_arch(opts, query):
        """Filter query by repoid and arch options"""
        if opts.repo:
            query.filterm(reponame=opts.repo)
        if opts.arches:
            query.filterm(arch=opts.arches)
        return query


`query.filterm(reponame=opts.repo)` cannot be fixed by `query.filterm(reponame__glob=opts.repo)`, because `glob` cmp_type is not supported for reponame filter.

Comment 2 Ben Cotton 2022-05-12 16:30:51 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 3 amatej 2022-05-16 05:19:57 UTC

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