From 0c17e0d9fcef4331551bceedd847245bef33e311 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 16 Dec 2009 10:54:59 -0800 Subject: Use the host's SRCDEST and PKGDEST if defined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aaron Griffin Original-by: Eric BĂ©langer --- makechrootpkg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index 5095425..032e6f7 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -150,6 +150,10 @@ if [ "$REPACK" != "1" ]; then rm -rf "$uniondir/build/"* fi +# Get SRC/PKGDEST from makepkg.conf +SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2) +PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2) + [ -d "$uniondir/pkgdest" ] || mkdir "$uniondir/pkgdest" if ! grep "PKGDEST=/pkgdest" "$uniondir/etc/makepkg.conf" >/dev/null 2>&1; then echo "Setting PKGDEST in makepkg.conf" -- cgit v1.2.3-24-g4f1b