Skip to content

Commit

Permalink
[spec] Add Recommends %{_bindir}/sqlite3 for bash-completion for Fedora
Browse files Browse the repository at this point in the history
#1817 added the ability to utilize sqlite cache when available.
https://discussion.fedoraproject.org/t/why-bash-auto-completion-is-so-slow-with-dnf/88944
and https://discussion.fedoraproject.org/t/dnf-autocompletion-is-too-slow/64038
Are users noting that bash completion is slow without sqlite installed.

= changelog =
msg:   [spec] Add Recommends %{_bindir}/sqlite3 for bash-completion for Fedora
type:  enhancement
related: #1817
related: https://discussion.fedoraproject.org/t/why-bash-auto-completion-is-so-slow-with-dnf/88944
related: https://discussion.fedoraproject.org/t/dnf-autocompletion-is-too-slow/64038
  • Loading branch information
grumpey authored and j-mracek committed Sep 20, 2023
1 parent b2acddd commit 2d2047e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dnf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ Requires: python3-%{name} = %{version}-%{release}
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: python-dbus
Requires: %{_bindir}/sqlite3
%elif 0%{?fedora}
Recommends: (%{_bindir}/sqlite3 if (bash-completion and python3-dnf-plugins-core))
%else
Recommends: (python3-dbus if NetworkManager)
%endif
Expand Down

0 comments on commit 2d2047e

Please sign in to comment.