Bug 1967927 - RFE better "No match for argument" reporting
Summary: RFE better "No match for argument" reporting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-04 12:43 UTC by Marek Blaha
Modified: 2023-08-23 13:58 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-08-23 13:57:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Marek Blaha 2021-06-04 12:43:41 UTC
Description of problem:

The error message users get in case they try to install excluded package could be better. Especially for API users and for CLI users in case the local rpm is used.

Steps to Reproduce:
1. dnf install --exclude=acpi acpi-1.7-15.fc33.x86_64.rpm

Actual results:

# dnf install --exclude=acpi acpi-1.7-15.fc33.x86_64.rpm
No match for argument: acpi-1.7-15.fc33.x86_64.rpm
Error: Unable to find a match

Expected results:

# dnf install --exclude=acpi acpi-1.7-15.fc33.x86_64.rpm
No match for argument: acpi-1.7-15.fc33.x86_64.rpm
Error: Unable to find a match (all matches filtered out by exclude filtering)


Additional info:

It actually works fine for repository packages:

# dnf install --exclude=acpi acpi
All matches were filtered out by exclude filtering for argument: acpi
Error: Unable to find a match: acpi

Related bug: https://bugzilla.redhat.com/show_bug.cgi?id=1955309
Related ansible issue: https://github.com/ansible/ansible/issues/74504

Comment 1 Jaroslav Mracek 2023-08-23 13:14:22 UTC
I think that the issue is resolved by DNF5. Shall we close the issue?

Comment 2 Marek Blaha 2023-08-23 13:57:38 UTC
@jmracek indeed it is, thanks for remainder.


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