加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
0005-scripts-pkgbuild-add-prepare_env-hook.patch 971 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 8e1d1d24e39464e88e92695ea5951639e789f72d Mon Sep 17 00:00:00 2001
From: Pavel Boldin <pboldin@cloudlinux.com>
Date: Sat, 28 Oct 2017 03:47:48 +0300
Subject: [PATCH 05/89] scripts/pkgbuild: add prepare_env hook
Change-Id: Iabb96a1b9f9cd8d1415029380f825da29156a840
Signed-off-by: Pavel Boldin <pboldin@cloudlinux.com>
---
scripts/pkgbuild | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scripts/pkgbuild b/scripts/pkgbuild
index ea1f411..3697594 100755
--- a/scripts/pkgbuild
+++ b/scripts/pkgbuild
@@ -73,6 +73,11 @@ clean_dirs() {
rm -rf $KP_PROJECT_BUILD_ROOT /root/root.original /root/root.patched
}
+kp_prepare_env_hook() {
+ # use this to add repos
+ :
+}
+
kp_pack_prebuilt() {
echo " packing prebuilt $KP_PROJECT into $KP_PROJECT_PREBUILT"
pushd $KP_PROJECT_BUILD_ROOT
@@ -386,6 +391,8 @@ main() {
overwrite_utils
+ kp_prepare_env_hook
+
if [ "$ACTION" == "prebuild" ]; then
kp_prepare_source
kp_prebuild_hook
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化