summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions21
1 files changed, 10 insertions, 11 deletions
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" | \