Bug 1648686

Summary: TAB autocomplete broken after 28->29 upgrade
Product: [Fedora] Fedora Reporter: Andrey Chessnokov <chessnokov>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: 29CC: damiannohales, dmach, jberan, mblaha, mhatina, packaging-team-maint, paulo.fidalgo.pt, rpm-software-management, vmukhame
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: 2019-08-16 11:57:58 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 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 ***