When building software in PKGBUILD file, download upstream files often times out. We need to cache these files by squid server.The example is as follow:
https://invisible-mirror.net/archives/conflict/conflict-20150705.tgz => http://invisible-mirror.net/archives/conflict/conflict-20150705.tgz
Signed-off-by: Liu Shaofei liushaofei5@huawei.com --- tests/build-pkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/build-pkg b/tests/build-pkg index e4eca747..17157771 100755 --- a/tests/build-pkg +++ b/tests/build-pkg @@ -108,6 +108,8 @@ replace_source() echo "$url" | egrep 'git+|.git$' && { url=""${repo_dir}git://${LKP_SERVER}/${upstream_repo}#commit=${upstream_commit}"" } + url=$(echo "$url" | sed 's|https://%7Chttp://%7Cg') + echo "$url" >> $1 done echo ")" >> $1 @@ -126,8 +128,7 @@ build_source_pkg() repo_dir="${repo_dir%.git*}::" fi } - - replace_source "PKGBUILD.src" + replace_source PKGBUILD.src
[ -n "$PKGBUILD_TAG" ] && replace_source "PKGBUILD-$PKGBUILD_TAG"
On Wed, Dec 09, 2020 at 05:45:50PM +0800, Liu Shaofei wrote:
When building software in PKGBUILD file, download upstream files often times out. We need to cache these files by squid server.The example is as follow:
https://invisible-mirror.net/archives/conflict/conflict-20150705.tgz => http://invisible-mirror.net/archives/conflict/conflict-20150705.tgz
Signed-off-by: Liu Shaofei liushaofei5@huawei.com
Why your Signed-off-by is inconsistent with this email to?
To: Liu Shaofei 370072077@qq.com
Signed-off-by: Liu Shaofei liushaofei5@huawei.com
-------- Thanks Yu Chuan
tests/build-pkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/build-pkg b/tests/build-pkg index e4eca747..17157771 100755 --- a/tests/build-pkg +++ b/tests/build-pkg @@ -108,6 +108,8 @@ replace_source() echo "$url" | egrep 'git+|.git$' && { url=""${repo_dir}git://${LKP_SERVER}/${upstream_repo}#commit=${upstream_commit}"" }
url=$(echo "$url" | sed 's|https://|http://|g')
- echo "$url" >> $1 done echo ")" >> $1
@@ -126,8 +128,7 @@ build_source_pkg() repo_dir="${repo_dir%.git*}::" fi }
- replace_source "PKGBUILD.src"
replace_source PKGBUILD.src
[ -n "$PKGBUILD_TAG" ] && replace_source "PKGBUILD-$PKGBUILD_TAG"
-- 2.23.0
On Thu, Dec 10, 2020 at 10:32:01AM +0800, Yu Chuan wrote:
On Wed, Dec 09, 2020 at 05:45:50PM +0800, Liu Shaofei wrote:
When building software in PKGBUILD file, download upstream files often times out. We need to cache these files by squid server.The example is as follow:
https://invisible-mirror.net/archives/conflict/conflict-20150705.tgz => http://invisible-mirror.net/archives/conflict/conflict-20150705.tgz
Signed-off-by: Liu Shaofei liushaofei5@huawei.com
Why your Signed-off-by is inconsistent with this email to?
To: Liu Shaofei 370072077@qq.com
Signed-off-by: Liu Shaofei liushaofei5@huawei.com
good.
Thanks, Liushaofei
Thanks Yu Chuan
tests/build-pkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/build-pkg b/tests/build-pkg index e4eca747..17157771 100755 --- a/tests/build-pkg +++ b/tests/build-pkg @@ -108,6 +108,8 @@ replace_source() echo "$url" | egrep 'git+|.git$' && { url=""${repo_dir}git://${LKP_SERVER}/${upstream_repo}#commit=${upstream_commit}"" }
url=$(echo "$url" | sed 's|https://|http://|g')
- echo "$url" >> $1 done echo ")" >> $1
@@ -126,8 +128,7 @@ build_source_pkg() repo_dir="${repo_dir%.git*}::" fi }
- replace_source "PKGBUILD.src"
replace_source PKGBUILD.src
[ -n "$PKGBUILD_TAG" ] && replace_source "PKGBUILD-$PKGBUILD_TAG"
-- 2.23.0