1 Star 0 Fork 100

Fengfei.XI/oemaker

forked from src-openEuler/oemaker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0008-add-parse_everything_deb_exclude.patch 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
xyn-coder 提交于 2022-04-28 17:01 . merging by 22.03-LTS
From efcc2fd150f9fe625a03b4b5d9c492f6691b1ba1 Mon Sep 17 00:00:00 2001
From: small_leek <[email protected]>
Date: Fri, 18 Mar 2022 11:19:07 +0800
Subject: [PATCH] add parse_everything_deb_exclude
---
isomaker/rpm.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/isomaker/rpm.sh b/isomaker/rpm.sh
index e5fad1f..fa6167b 100644
--- a/isomaker/rpm.sh
+++ b/isomaker/rpm.sh
@@ -217,6 +217,14 @@ function everything_debug_rpms_download()
{
mkdir ${EVERY_DEBUG_DIR}
yum list --installroot="${BUILD}"/tmp --available | awk '{print $1}' | grep -E "debuginfo|debugsource" > ava_debug_lst
+ parse_rpmlist_xml "everything_debug_exclude"
+ cat parsed_rpmlist_everything_debug_exclude
+ if [ -s parsed_rpmlist_everything_debug_exclude ];then
+ for rpmname in $(cat parsed_rpmlist_everything_debug_exclude)
+ do
+ sed -i "/^${rpmname}\./d" ava_debug_lst
+ done
+ fi
yumdownloader --resolve --installroot="${BUILD}"/tmp --destdir="${EVERY_DEBUG_DIR}" $(cat ava_debug_lst | tr '\n' ' ')
if [ $? != 0 ] || [ $(ls ${EVERY_DEBUG_DIR} | wc -l) == 0 ]; then
echo "yumdownloader with --resolve failed, trying to yumdownloader without --resolve"
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fengfeixi/oemaker.git
[email protected]:fengfeixi/oemaker.git
fengfeixi
oemaker
oemaker
master

搜索帮助