Skip to content

Commit 3a2720c

Browse files
committed
[update] : Supported custom pacman.conf
1 parent 3bb4894 commit 3a2720c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ menuconfig-script/kernel_choice_*
2525
/custom.conf
2626
/out/
2727
out
28+
/pacman-*.conf

build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,10 @@ make_pacman_conf() {
552552
build_pacman_conf="${script_path}/system/pacman-${arch}.conf"
553553
fi
554554

555+
if [[ -f "${script_path}/pacman-${arch}.conf" ]]; then
556+
build_pacman_conf="${script_path}/pacman-${arch}.conf"
557+
fi
558+
555559
msg_debug "Use ${build_pacman_conf}"
556560
sed -r "s|^#?\\s*CacheDir.+|CacheDir = ${cache_dir}|g" "${build_pacman_conf}" > "${build_dir}/pacman-${arch}.conf"
557561

0 commit comments

Comments
 (0)