index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-05-04 14:27:55 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-04 14:27:55 +0200 |
commit | b93c9bd79f8f40af59bd497727aa9c8bcf13010c (patch) | |
tree | 6db8677d6ba46eceac8377b67bb35291ee9aaba5 /lib | |
parent | cc0ff34336cde2408fcfc8724f48719f6f10ecb8 (diff) |
-rwxr-xr-x | lib/mysql-functions | 21 |
diff --git a/lib/mysql-functions b/lib/mysql-functions index 3c45edc..bc0d26f 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -319,17 +319,16 @@ mysql_generate_package_metadata() { # shellcheck disable=SC2034 # select any specific arch (which will be building the 'any' part of a split package) any_arch=$( - { - sed -n ' - s/^\tarch = // - T - p - ' "${temp_dir}/SRCINFO" | \ - sort -r | \ - grep -vxFm 1 'any' || \ - echo 'any' - } | \ - base64_encode_each + cut -f1 < \ + "${tmp_dir}/build-assignments.id" | \ + grep -vxFm 1 "$( + printf '%s' 'any' | \ + base64 -w0 + )" || \ + { + printf '%s' 'any' | \ + base64 -w0 + } ) grep '^pkgname = ' "${temp_dir}/SRCINFO" | \ |