From ece0c6165cc38a5149e21f02df3b545ce3f30f25 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 24 Apr 2017 23:04:42 -0400 Subject: makepkg.conf: use librelib conf to get the user and home directory. It wasn't handling this nesting correctly: autobuilder -> libremakepkg(root) -> pkgbuild-check-nonfree --- .config/pacman/makepkg.conf | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.config/pacman/makepkg.conf b/.config/pacman/makepkg.conf index 98b1536..477fe8e 100644 --- a/.config/pacman/makepkg.conf +++ b/.config/pacman/makepkg.conf @@ -1,12 +1,13 @@ -PKGDEST="${LIBREHOME:-$HOME}/packages/pkgdest" -SRCDEST="${LIBREHOME:-$HOME}/packages/srcdest" -SRCPKGDEST="${LIBREHOME:-$HOME}/packages/srcpkgdest" -LOGDEST="${LIBREHOME:-$HOME}/packages/logdest" -BUILDDIR="${LIBREHOME:-$HOME}/packages/builddir" +. "$(librelib conf)" +PKGDEST="${LIBREHOME}/packages/pkgdest" +SRCDEST="${LIBREHOME}/packages/srcdest" +SRCPKGDEST="${LIBREHOME}/packages/srcpkgdest" +LOGDEST="${LIBREHOME}/packages/logdest" +BUILDDIR="${LIBREHOME}/packages/builddir" GPGKEY="$({ [ -z "$GPGKEY" ] || echo "$GPGKEY" - sed -nr 's/^\s*default-key\s+//p' "${LIBREHOME:-$HOME}/.gnupg/gpg.conf" - sudo -u "${LIBREUSER:-$USER}" gpg --list-secret-keys --with-colons | awk -F: '/^sec:/{print substr($5,9)}' + sed -nr 's/^\s*default-key\s+//p' "${LIBREHOME}/.gnupg/gpg.conf" + sudo -u "${LIBREUSER}" gpg --list-secret-keys --with-colons | awk -F: '/^sec:/{print substr($5,9)}' } | sed 1q)" -PACKAGER="$(sudo -u "${LIBREUSER:-$USER}" gpg --with-colons --fingerprint "$GPGKEY" | awk -F: '/^uid:/{print $10}')" +PACKAGER="$(sudo -u "${LIBREUSER}" gpg --with-colons --fingerprint "$GPGKEY" | awk -F: '/^uid:/{print $10}')" -- cgit v1.2.3-54-g00ecf