On Friday 26 February 2010 16:23:37 you wrote: > makechrootpkg does not read SRCDEST and PKGDEST if they are set in > ~/.makepkg.conf sorry, this fix the typo
Also, this read PKGEXT from makepkg.conf, we use $PKGEXT at line 208, but who set it? -- Andrea `bash` Scarpino Arch Linux Developer
From b5111a5781ee9325fa20c4678f7cfcc06e5b76a9 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino <[email protected]> Date: Fri, 26 Feb 2010 16:31:44 +0100 Subject: [PATCH] fix typo; read PKGEXT from /etc/makepkg.conf and ~/.makepkg.conf --- makechrootpkg | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/makechrootpkg b/makechrootpkg index 367572d..43d6f3c 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -133,11 +133,13 @@ if [ "$REPACK" != "1" ]; then rm -rf "$copydir/build/"* fi -# Get SRC/PKGDEST from makepkg.conf +# Get SRC/PKGDEST/PKGEXT from makepkg.conf SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2) [ -z ${SRCDEST} ] && SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2) PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2) -[ -z ${SRCDEST} ] && PKGDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2) +[ -z ${PKGDEST} ] && PKGDEST=$(grep '^PKGDEST=' ~/.makepkg.conf | cut -d= -f2) +PKGEXT=$(grep '^PKGEXT=' /etc/makepkg.conf | cut -d= -f2) +[ -z ${PKGEXT} ] && PKGEXT=$(grep '^PKGEXT=' ~/.makepkg.conf | cut -d= -f2) [ -d "$copydir/pkgdest" ] || mkdir "$copydir/pkgdest" if ! grep 'PKGDEST=/pkgdest' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then -- 1.7.0

