代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/gazelle 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 878bd892608e312276945a57430c86909cefb459 Mon Sep 17 00:00:00 2001
From: yinbin6 <yinbin8@huawei.com>
Date: Fri, 30 Aug 2024 16:15:03 +0800
Subject: [PATCH] tools: fix script generate patchname wrong
---
tools/sync-gazelle-src.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/sync-gazelle-src.sh b/tools/sync-gazelle-src.sh
index 142e770..ccfa8eb 100644
--- a/tools/sync-gazelle-src.sh
+++ b/tools/sync-gazelle-src.sh
@@ -65,14 +65,14 @@ for commitid in ${COMMIT_ID};do
fi
#get patchnum from spec file.
- patchnum=$(grep -o "Patch[0-9]\+" *.spec | tail -n 1 | awk -Fh '{print $2}')
+ patchnum=$(grep -o "Patch[0-9]\+" *.spec | tail -n 1 | awk -Fh '{print $2}' | awk '{print $1 - 9000}')
if [ -z $patchnum ];then
#there is no patch in spec file. get patch by conunt patches in dir.
patchnum=$(ls ./*.patch | wc -l)
- let Patchnum=9000+$patchnum
- patchnum=$(printf "%04d\n" $patchnum)
fi
let patchnum+=1
+ let Patchnum=9000+$patchnum
+ patchnum=$(printf "%04d\n" $patchnum)
new_patchname=$(echo $patchname | sed -e "s/^0001-/${patchnum}-/g")
echo $new_patchname
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。