Bug 2226471 - Autocomplete appends the whole package name when autocompleting kernel-core-6.x
Summary: Autocomplete appends the whole package name when autocompleting kernel-core-6.x
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 38
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jaroslav Mracek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-25 20:18 UTC by Renich Bon Ciric
Modified: 2023-07-31 12:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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