Bug 1648686 - TAB autocomplete broken after 28->29 upgrade
Summary: TAB autocomplete broken after 28->29 upgrade
Keywords:
Status: CLOSED DUPLICATE of bug 1625674
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 29
Hardware: x86_64
OS: Linux
low
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-11 17:12 UTC by Andrey Chessnokov
Modified: 2019-08-16 11:57 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-08-16 11:57:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Andrey Chessnokov 2018-11-11 17:12:46 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Andrey Chessnokov 2018-11-11 17:19:31 UTC
Description of problem:
'sudo dnf install [TAB]' does not work, no list of packages output

Steps to Reproduce:
1. sudo dnf install [TAB]

Actual results:
no list of packages

Expected results:
list of packages

Comment 2 Paulo Fidalgo 2018-12-07 11:47:21 UTC
I've also found this, I've already tried a dnf clean and rpm --rebuilddb but without luck. is there anything I can do to help the triage?

Comment 3 Damián Nohales 2019-01-10 15:37:58 UTC
I have the same problem

Basically, running "sudo dnf install naut[TAB]" makes dnf hangs, so I have to stroke ctrl-c to get the prompt control back.

Seeing at the bash-completion file, I saw the Python code responsible of autocompleting packages and tried to execute that snippet by hand:

$ python3 -c "import sys; from dnf.cli import completion_helper as ch;ch.main(sys.argv[1:])" install naut -d 0 -q -C
Importing GPG key 0x429476B4:
 Userid     : "Fedora 29 (29) <fedora-29>"
 Fingerprint: 5A03 B4DD 8254 ECA0 2FDA 1637 A20A A56B 4294 76B4
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-29-x86_64
Is this ok [y/N]:

So this prompt is not letting dnf to show the completions, even by responding Y here, the subsequent execution of the completion command ask to import this key again.

Comment 4 Jan Beran 2019-08-16 11:57:58 UTC

*** This bug has been marked as a duplicate of bug 1625674 ***


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