Bug 2226471

Summary: Autocomplete appends the whole package name when autocompleting kernel-core-6.x
Product: [Fedora] Fedora Reporter: Renich Bon Ciric <renich>
Component: dnf5Assignee: Jaroslav Mracek <jmracek>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 38CC: jkolarik, nsella, pkratoch, rpm-software-management
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Renich Bon Ciric 2023-07-25 20:18:08 UTC
If you try to remove old kernels (6.3.x at the time) and you use auto completion, then dnf5 autocompletes the name incorrectly by appending the whole package name once again. 

Reproducible: Always

Steps to Reproduce:
1. dnf5 list installed kernel*
2. dnf5 remove kernel-core-0<tab>
3. dnf5 remove kernel-core-0:6.3.<tab>
Actual Results:  
I end up with:

dnf remove kernel-core-0:kernel-core-0:6.3.11

Or something similar.

Expected Results:  
I should just get: 

dnf remove kenrel-core-0:6.3.11

for example.

This might apply to other package names. Also, it wouldn't accept: dnf remove kernel-core-0:6.3*.