From ddf6aba1f08ec6fef5e69fc96694ac1fd04c9435 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 4 May 2018 14:47:34 +0200 Subject: lib/mysql-functions: "any" is not in the archs file if specific arch exists - simplify expression! --- lib/mysql-functions | 10 ++-------- 1 file 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 -- cgit v1.2.3-70-g09d2