8 Star 1 Fork 58

src-openEuler/dnf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fix-bash-completion-due-to-sqlite-changes.patch 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
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.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/dnf.git
git@gitee.com:src-openeuler/dnf.git
src-openeuler
dnf
dnf
master

搜索帮助