diff options
author | Erich Eckner <git@eckner.net> | 2020-02-19 09:38:37 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-20 08:18:01 +0100 |
commit | aaee239ef1b6069abb6324817b9e8d13ca28b897 (patch) | |
tree | d47a8ec5b4d62d46961091c9b4a66b3118ae08c5 /makechrootpkg.in | |
parent | cb6484fe4538e34490a44661d8579c370cccea0b (diff) | |
download | devtools-aaee239ef1b6069abb6324817b9e8d13ca28b897.tar.xz |
allow PKGEXT to be set from the environment
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index dfea18c..56830e2 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -178,6 +178,9 @@ prepare_chroot() { grep -q "^$x" "$copydir/etc/makepkg.conf" && continue echo "$x" >>"$copydir/etc/makepkg.conf" done + if [ -n "${PKGEXT}" ]; then + sed -i 's/^PKGEXT=.*/PKGEXT='"'${PKGEXT}'"'/' "$copydir/etc/makepkg.conf" + fi cat > "$copydir/etc/sudoers.d/builduser-pacman" <<EOF builduser ALL = NOPASSWD: /usr/bin/pacman |