1 Star 0 Fork 78

zhoushuiqing/rpm

forked from src-openEuler/rpm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
revert-always-execute-file-trigger-scriptlet-callbac.patch 881 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 9680c3f2f8ceeddced6e91048daeb9b93abf4c8d Mon Sep 17 00:00:00 2001
From: openEuler Buildteam <buildteam@openeuler.org>
Date: Wed, 25 Mar 2020 16:57:29 +0800
Subject: [PATCH] revert always execute file trigger scriptlet callbacks with
owning header
---
lib/rpmtriggers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rpmtriggers.c b/lib/rpmtriggers.c
index 285b2f0..b7c76e7 100644
--- a/lib/rpmtriggers.c
+++ b/lib/rpmtriggers.c
@@ -437,7 +437,7 @@ static int runHandleTriggersInPkg(rpmts ts, rpmte te, Header h,
inputFunc = (char *(*)(void *)) matchFilesNext;
rpmScriptSetNextFileFunc(script, inputFunc, mfi);
- nerrors += runScript(ts, NULL, h, installPrefixes.data,
+ nerrors += runScript(ts, te, h, installPrefixes.data,
script, 0, -1);
rpmtdFreeData(&installPrefixes);
rpmScriptFree(script);
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ZhouShuiQing/rpm.git
git@gitee.com:ZhouShuiQing/rpm.git
ZhouShuiQing
rpm
rpm
master

搜索帮助