summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-27 21:00:30 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-27 21:00:30 -0600
commit81c44824f174eda5f57c396cc7d91e2c97490d93 (patch)
tree4f15d331bca39bb22ce0fc35c8b86eae29825a5b /src
parent5dd6e17100a86b79a3fd6fedc8cce49dcc298356 (diff)
cleanup: set CARCH before loading PKGBUILD
Diffstat (limited to 'src')
-rwxr-xr-xsrc/chroot-tools/chcleanup1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chroot-tools/chcleanup b/src/chroot-tools/chcleanup
index 49a2da4..d2d9a70 100755
--- a/src/chroot-tools/chcleanup
+++ b/src/chroot-tools/chcleanup
@@ -37,6 +37,7 @@ fi
source /etc/libretools.d/chroot.conf
# If we're running makepkg
if [ -f PKGBUILD ]; then
+ export CARCH="$(. /etc/makepkg.conf; printf '%s' "$CARCH")"
source PKGBUILD
CHROOTEXTRAPKG+=("${depends[@]}"
"${makedepends[@]}"