Bug 2007139 - asterisk expansion in --repo does not work
Summary: asterisk expansion in --repo does not work
Keywords:
Status: CLOSED DUPLICATE of bug 1928244
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 34
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-23 08:41 UTC by Miroslav Suchý
Modified: 2022-05-16 05:19 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-05-16 05:19:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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