Projects
Eulaceura:Factory
install-scripts
_service:obs_scm:0005-support-use-20-escape-cha...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0005-support-use-20-escape-characters-in-url.patch of Package install-scripts
From d08e3843904fee9bfb955a928a55a2f08b8f054a Mon Sep 17 00:00:00 2001 From: Qiumiao Zhang <zhangqiumiao1@huawei.com> Date: Tue, 15 Aug 2023 14:48:50 +0800 Subject: [PATCH] support use %20 escape characters in url Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com> --- usr/Euler/project/install/setupOS.sh | 4 ++-- usr/Euler/project/load/load.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/Euler/project/install/setupOS.sh b/usr/Euler/project/install/setupOS.sh index f1040c4..f8a6f79 100644 --- a/usr/Euler/project/install/setupOS.sh +++ b/usr/Euler/project/install/setupOS.sh @@ -189,7 +189,7 @@ function SetupOS_Decompr() #sha256sum check if [ ! -z "$LOCAL_SOURCE_PATH" -a ! -z "$SI_OSTARNAME" -a -f "$LOCAL_SOURCE_PATH/$SI_OSTARNAME.sha256" ]; then - pushd $LOCAL_SOURCE_PATH >> $OTHER_TTY 2>&1 + pushd "$LOCAL_SOURCE_PATH" >> $OTHER_TTY 2>&1 sha256sum -c "$SI_OSTARNAME.sha256" >> $OTHER_TTY 2>&1 if [ $? -eq 0 ]; then g_LOG_Info "sha256sum success." @@ -211,7 +211,7 @@ function SetupOS_Decompr() return 1 fi - tar -xzf $LOCAL_SOURCE_PATH/$SI_OSTARNAME -C $LOCAL_UNCOMPRESS_PATH >> $OTHER_TTY 2>&1 + tar -xzf "$LOCAL_SOURCE_PATH/$SI_OSTARNAME" -C "$LOCAL_UNCOMPRESS_PATH" >> $OTHER_TTY 2>&1 if [ $? -ne 0 ]; then g_LOG_Error "uncompressed the $LOCAL_SOURCE_PATH/$SI_OSTARNAME failed." return 1 diff --git a/usr/Euler/project/load/load.sh b/usr/Euler/project/load/load.sh index 2f0a5d8..176bb1c 100644 --- a/usr/Euler/project/load/load.sh +++ b/usr/Euler/project/load/load.sh @@ -109,7 +109,7 @@ function g_Load_Os if echo $tran_protocol | grep -q -E "^[fF][tT][pP]$|^[hH][tT][tT][pP]$"; then if [ "x$FT_SERVER_SOURCE_PATH" != "x" ]; then - LOCAL_SOURCE_PATH="$LOCAL_SOURCE_PATH/$FT_SERVER_SOURCE_PATH/repo" + LOCAL_SOURCE_PATH="$LOCAL_SOURCE_PATH/${FT_SERVER_SOURCE_PATH//%20/ }/repo" else LOCAL_SOURCE_PATH="$LOCAL_SOURCE_PATH/repo" fi -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2