Bug 1692028 - dnf bash completion stopped working after upgrade to F30
Summary: dnf bash completion stopped working after upgrade to F30
Keywords:
Status: CLOSED DUPLICATE of bug 1695853
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 30
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1695082 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-23 13:18 UTC by Artem
Modified: 2019-04-05 09:06 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-05 09:06:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Artem 2019-03-23 13:18:48 UTC
Description of problem:
  After upgrading from F29 to F30 dnf bash completion not working any more at all. Auto completion not working for any dnf command, not only for packages from repos.

Version-Release number of selected component (if applicable):
  dnf-4.2.1-1.fc30

How reproducible:
  Try to run any command like:
    dnf <foo[TAB]>

Steps to Reproduce:
  sudo dnf ins[TAB]
    or
  dnf ins[TAB]

Actual results:
  Nothing.

Expected results:
  sudo dnf install

Comment 1 Nils Philippsen 2019-04-04 15:18:01 UTC
*** Bug 1695082 has been marked as a duplicate of this bug. ***

Comment 2 Nils Philippsen 2019-04-04 15:20:21 UTC
Bug #1695082 has "set -x" output for an attempt of tab expansion.

I've come across this myself, tried to execute this line from the output (towards the end)...:

/usr/bin/python3 -c 'import sys; from dnf.cli import completion_helper as ch; ch.main(sys.argv[1:])' _cmds '' -d 0 -q -C --assumeno --nogpgcheck

...and found that the completion_helper module isn't installed (which it is with the same version-release on F-29).

Comment 3 Nils Philippsen 2019-04-04 15:35:54 UTC
(In reply to Nils Philippsen from comment #2)
> ...and found that the completion_helper module isn't installed (which it is
> with the same version-release on F-29).

Clarifying, I mean that python3-dnf contains the module in F-29, but doesn't in F-30, Rawhide.

Comment 4 Marek Blaha 2019-04-05 09:06:02 UTC

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


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