diff options
author | Erich Eckner <git@eckner.net> | 2017-06-09 14:48:33 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-09 14:48:33 +0200 |
commit | 548deba2f8cdebc4c20f3a8fb9936ae6be8a717f (patch) | |
tree | bef701d79ad1dfb4ae62eb233475ba08118aff43 /bin/get-package-updates | |
parent | 0708ebe2ef93780bb7b7885ea140e2b1458a9c13 (diff) | |
download | builder-548deba2f8cdebc4c20f3a8fb9936ae6be8a717f.tar.xz |
bin/get-package-updates: use makepkg instead of mksrcinfo if $CARCH in PKGBUILD present
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-x | bin/get-package-updates | 5 |
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 |