OSDN Git Service

[update] : Use customized pacman cache
authorhayao <hayao@fascode.net>
Thu, 8 Apr 2021 05:35:43 +0000 (14:35 +0900)
committerhayao <hayao@fascode.net>
Thu, 8 Apr 2021 05:35:43 +0000 (14:35 +0900)
build.sh

index fa3dd4a..d325c2f 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -546,7 +546,7 @@ make_pacman_conf() {
     msg_debug "Use ${build_pacman_conf}"
 
     if [[ "${nosigcheck}" = true ]]; then
-        sed -r "s|^#?\\s*SigLevel.+|SigLevel = Never|g" "${build_pacman_conf}" > "${build_dir}/pacman-${arch}.conf"
+        sed -r "s|^#?\\s*SigLevel.+|SigLevel = Never|g; s|^#?\\s*CacheDir.+|SigLevel = ${cache_dir}|g" "${build_pacman_conf}" > "${build_dir}/pacman-${arch}.conf"
     else
         cp "${build_pacman_conf}" "${build_dir}/pacman-${arch}.conf"
     fi