dnf:Fix bash completion due to sqlite changes
This commit is contained in:
parent
99b410bdf6
commit
8e51f196a1
30
backport-Fix-bash-completion-due-to-sqlite-changes.patch
Normal file
30
backport-Fix-bash-completion-due-to-sqlite-changes.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From 33fde245b0a49eb02837b6fedb2d14ed92c2d99f Mon Sep 17 00:00:00 2001
|
||||||
|
From: grumpey <61189565+grumpey@users.noreply.github.com>
|
||||||
|
Date: Sun, 20 Aug 2023 07:35:29 -0400
|
||||||
|
Subject: [PATCH] Fix bash completion due to sqlite changes
|
||||||
|
|
||||||
|
Conflict:NA
|
||||||
|
Reference:https://github.com/rpm-software-management/dnf/commit/33fde245b0a49eb02837b6fedb2d14ed92c2d99f
|
||||||
|
|
||||||
|
= changelog =
|
||||||
|
msg: Fix bash completion due to sqlite changes
|
||||||
|
type: bugfix
|
||||||
|
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2232052
|
||||||
|
related: https://sqlite.org/src/info/c995932c3ffe7f27
|
||||||
|
---
|
||||||
|
etc/bash_completion.d/dnf | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/etc/bash_completion.d/dnf b/etc/bash_completion.d/dnf
|
||||||
|
index eb34b807a9..8a9256a695 100644
|
||||||
|
--- a/etc/bash_completion.d/dnf
|
||||||
|
+++ b/etc/bash_completion.d/dnf
|
||||||
|
@@ -112,7 +112,7 @@ _dnf_query_db()
|
||||||
|
{
|
||||||
|
local table=$1
|
||||||
|
local prefix=$2
|
||||||
|
- local query="select pkg from $table where pkg like \"$prefix%\""
|
||||||
|
+ local query="select pkg from $table where pkg like '$prefix%'"
|
||||||
|
if [ "$table" = "available" ]; then
|
||||||
|
# The available table contains both installed and non-installed
|
||||||
|
# packages. Exclude the installed packages.
|
||||||
10
dnf.spec
10
dnf.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: dnf
|
Name: dnf
|
||||||
Version: 4.16.2
|
Version: 4.16.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A software package manager that manages packages on Linux distributions.
|
Summary: A software package manager that manages packages on Linux distributions.
|
||||||
License: GPL-2.0-or-later AND GPL-1.0-only
|
License: GPL-2.0-or-later AND GPL-1.0-only
|
||||||
URL: https://github.com/rpm-software-management/dnf
|
URL: https://github.com/rpm-software-management/dnf
|
||||||
@ -24,6 +24,8 @@ Patch6000: dnf-4.10.0-sw.patch
|
|||||||
Patch6001: 0001-Add-loongarch-architecture-support.patch
|
Patch6001: 0001-Add-loongarch-architecture-support.patch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Patch6002: backport-Fix-bash-completion-due-to-sqlite-changes.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: cmake gettext systemd bash-completion python3-sphinx
|
BuildRequires: cmake gettext systemd bash-completion python3-sphinx
|
||||||
Requires: python3-%{name} = %{version}-%{release} libreport-filesystem
|
Requires: python3-%{name} = %{version}-%{release} libreport-filesystem
|
||||||
@ -250,6 +252,12 @@ popd
|
|||||||
%{_mandir}/man8/%{name}-automatic.8*
|
%{_mandir}/man8/%{name}-automatic.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 02 2024 chenhaixing <chenhaixing@huawei.com> - 4.16.2-2
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:dnf:Fix bash completion due to sqlite changes
|
||||||
|
|
||||||
* Sat Jul 29 2023 zhangrui <zhangrui182@huawei.com> - 4.16.2-1
|
* Sat Jul 29 2023 zhangrui <zhangrui182@huawei.com> - 4.16.2-1
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user