Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-09 14:48:33 +0200
committerErich Eckner <git@eckner.net>2017-06-09 14:48:33 +0200
commit548deba2f8cdebc4c20f3a8fb9936ae6be8a717f (patch)
treebef701d79ad1dfb4ae62eb233475ba08118aff43 /bin/get-package-updates
parent0708ebe2ef93780bb7b7885ea140e2b1458a9c13 (diff)
bin/get-package-updates: use makepkg instead of mksrcinfo if $CARCH in PKGBUILD present
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 00b11e1..9a3d8b1 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -214,7 +214,10 @@ while read -r package git_revision mod_git_revision repository; do
(
cd "${PKGBUILD%/*}"
apply_package_customizations
- mksrcinfo -o "${file_prefix}.SRCINFO"
+ grep -q '\$CARCH' 'PKGBUILD' && \
+ CARCH=i686 makepkg --printsrcinfo > \
+ "${file_prefix}.SRCINFO" || \
+ mksrcinfo -o "${file_prefix}.SRCINFO"
)
# otherwise this just calls for trouble