Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-04-20 13:49:19 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-08-04 12:57:37 -0400
commit1a9c7c81b558b0fd44571371b482c4017d1e0cce (patch)
tree94212f194ae68c427180aae55af4301cb1e1e86c
parente5e11117f4117a1cd5906a7cd4d014f72d2a157d (diff)
makechrootpkg: Also build --allsource packages
2018-08-02: - Do so outside of the chroot - Don't inject $pkgarch in to $SRCEXT
-rw-r--r--makechrootpkg.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 802ab65..c099a71 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -259,6 +259,8 @@ _chrootnamcap() {
# Usage: download_sources $copydir $makepkg_user
# Globals:
# - SRCDEST
+# - SRCPKGDEST
+# - PKGDEST
download_sources() {
local copydir=$1
local makepkg_user=$2
@@ -269,8 +271,8 @@ download_sources() {
# Ensure sources are downloaded
sudo -u "$makepkg_user" --preserve-env=GNUPGHOME \
- env SRCDEST="$SRCDEST" BUILDDIR="$builddir" \
- makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o ||
+ env SRCDEST="$SRCDEST" SRCPKGDEST="$SRCPKGDEST" PKGDEST="$PKGDEST" BUILDDIR="$builddir" \
+ makepkg --config="$copydir/etc/makepkg.conf" --allsource ||
die "Could not download sources."
# Clean up garbage from verifysource