加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Use-the-internal-DB_CTRL-enum-for-intenal-uses-consi.patch 798 Bytes
一键复制 编辑 原始数据 按行查看 历史
hugel 提交于 2024-06-03 09:15 . Backport some patches from upstream
From 1d6987a8ede061db611ff02eda62315e0ae24d2b Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Mon, 18 Mar 2024 10:02:52 +0200
Subject: [PATCH] Use the internal DB_CTRL* enum for intenal uses consistently
Conflict:NA
Reference:https://github.com/rpm-software-management/rpm/commit/1d6987a8ede061db611ff02eda62315e0ae24d2b
---
lib/rpmdb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rpmdb.c b/lib/rpmdb.c
index 2f0d72afd..4ad12230b 100644
--- a/lib/rpmdb.c
+++ b/lib/rpmdb.c
@@ -69,7 +69,7 @@ static int buildIndexes(rpmdb db)
dbSetFSync(db, 0);
- dbCtrl(db, RPMDB_CTRL_LOCK_RW);
+ dbCtrl(db, DB_CTRL_LOCK_RW);
mi = rpmdbInitIterator(db, RPMDBI_PACKAGES, NULL, 0);
while ((h = rpmdbNextIterator(mi))) {
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化