index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-02-19 09:38:37 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-13 14:05:37 +0100 |
commit | 15a4ae46a29612513eda53909536b81bcec44859 (patch) | |
tree | b9b015566fedeefa527a3d9f0c78336d1d74428d /makechrootpkg.in | |
parent | 90ba07d9be2883cccb1dd42aa0c8f974a2ff055c (diff) |
-rw-r--r-- | makechrootpkg.in | 4 |
diff --git a/makechrootpkg.in b/makechrootpkg.in index d308af2..10bf8b7 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 @@ -327,6 +330,7 @@ done umask 0022 ORIG_HOME=$HOME +PKGEXT=$PKGEXT IFS=: read -r _ _ _ _ _ HOME _ < <(getent passwd "${SUDO_USER:-$USER}") load_makepkg_config HOME=$ORIG_HOME |