summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-04 14:47:34 +0200
committerErich Eckner <git@eckner.net>2018-05-04 14:47:34 +0200
commitddf6aba1f08ec6fef5e69fc96694ac1fd04c9435 (patch)
treec8a6baaef80fcf861d2d4b3f6a256686ca57ab2c /lib
parentf7300080d27c5e49f9220f803ca81b68eca04ccd (diff)
downloadbuilder-ddf6aba1f08ec6fef5e69fc96694ac1fd04c9435.tar.xz
lib/mysql-functions: "any" is not in the archs file if specific arch exists - simplify expression!
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index e6e76fb..2821a59 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -321,14 +321,8 @@ mysql_generate_package_metadata() {
any_arch=$(
cut -f1 < \
"${tmp_dir}/build-assignments.id" | \
- grep -vxFm 1 "$(
- printf '%s' 'any' | \
- base64 -w0
- )" || \
- {
- printf '%s' 'any' | \
- base64 -w0
- }
+ sort | \
+ head -n1
)
# iterate over all pkgnames