加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fix-an-enum-int-type-mismatch-in-transaction-verify-.patch 884 Bytes
一键复制 编辑 原始数据 按行查看 历史
hugel 提交于 2024-06-03 09:15 . Backport some patches from upstream
From 90cfa466ae88b06595012084eada25a42064322c Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Mon, 18 Mar 2024 09:48:48 +0200
Subject: [PATCH] Fix an enum/int type mismatch in transaction verify code
Conflict:NA
Reference:https://github.com/rpm-software-management/rpm/commit/90cfa466ae88b06595012084eada25a42064322c
---
lib/transaction.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/transaction.c b/lib/transaction.c
index fcde554a6..6a49eb242 100644
--- a/lib/transaction.c
+++ b/lib/transaction.c
@@ -1288,7 +1288,7 @@ static int verifyPackageFiles(rpmts ts, rpm_loff_t total)
.vfylevel = vfylevel,
};
int verified = 0;
- rpmRC prc = RPMRC_FAIL;
+ int prc = RPMRC_FAIL;
rpmtsNotify(ts, p, RPMCALLBACK_VERIFY_PROGRESS, oc++, total);
FD_t fd = rpmtsNotify(ts, p, RPMCALLBACK_INST_OPEN_FILE, 0, 0);
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化