summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-04 14:27:55 +0200
committerErich Eckner <git@eckner.net>2018-05-04 14:27:55 +0200
commitb93c9bd79f8f40af59bd497727aa9c8bcf13010c (patch)
tree6db8677d6ba46eceac8377b67bb35291ee9aaba5
parentcc0ff34336cde2408fcfc8724f48719f6f10ecb8 (diff)
downloadbuilder-b93c9bd79f8f40af59bd497727aa9c8bcf13010c.tar.xz
lib/mysql-functions: use precompiled list of arch-build_assignments relations
-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" | \