Bug 1516857

Summary: [debuginfo-install]: No message when a package does not exist
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: dnf-plugins-coreAssignee: Jaroslav Mracek <jmracek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dmach, jmracek, packaging-team-maint, 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: 2018-06-28 08:36:37 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 Christian Stadelmann 2017-11-23 12:54:11 UTC
Description of problem:
When running `dnf debuginfo-install [packagename]` for a package which does not exist, there is no warning or error.

Version-Release number of selected component (if applicable):
dnf-plugins-core-2.1.5-1.fc27.noarch

How reproducible:
always

Steps to Reproduce:
1. run `dnf debuginfo-install foo` or `dnf debuginfo-install xorg-x11-server-xwayland`
2. watch output
3.

Actual results:
No warning. DNF exits with "nothing to do" message.

Expected results:
Give a warning that the package does not exist. This is the default behavior without debuginfo-install, i.e. `dnf install foo` or `dnf install xorg-x11-server-xwayland`.

Additional info:
Fixing this issue would help detecting typos such as "xorg-x11-server-xwayland" instead of "xorg-x11-server-Xwayland".

Comment 1 Jaroslav Mracek 2017-12-08 13:31:36 UTC
I created a patch that should solve the issue (https://github.com/rpm-software-management/dnf-plugins-core/pull/243).

Comment 2 Jaroslav Mracek 2018-06-28 08:36:37 UTC
The issue is solved by dnf-plugins-core-3.0.1-1 that was released into rawhide.