Compare commits

...

2 Commits

Author SHA1 Message Date
Kristian Klausen
31cca91b4e Merge branch 'github/fork/petronny/master' into 'master'
archbuild: read CacheDir from corresponding pacman.conf when mkarchchroot

See merge request archlinux/devtools!50
2025-08-10 10:04:50 +00:00
Jingbei Li
cdaf0cf86f archbuild: read CacheDir from corresponding pacman.conf when mkarchchroot 2020-06-24 21:51:04 +08:00

View File

@@ -78,6 +78,7 @@ check_root SOURCE_DATE_EPOCH,SRCDEST,SRCPKGDEST,PKGDEST,LOGDEST,MAKEFLAGS,PACKAG
# Pass all arguments after -- right to makepkg
makechrootpkg_args+=("${@:$OPTIND}")
cachedir=$(pacman-conf -c "${pacman_config}" CacheDir)
# Automatically recreate the root chroot if a version mismatch is detected
CURRENT_CHROOT_VERSION=$(cat "${chroots}/${repo}-${arch}/root/.arch-chroot")
@@ -105,6 +106,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
setarch "${set_arch}" mkarchroot \
-C "${pacman_config}" \
-M "${makepkg_config}" \
-c "${cachedir}" \
"${chroots}/${repo}-${arch}/root" \
"${base_packages[@]}" || abort
else