From 5fe9355caa12d3b62d618391391b38eb7f3f6809 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 28 Jul 2017 14:37:41 +0200 Subject: bin/common-functions: take into account *_i686 variables --- bin/common-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/common-functions b/bin/common-functions index 6ea3702..8c7d396 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -153,7 +153,7 @@ generate_package_metadata() { sed -i '/^[^=]*=\s*$/d' "${file_prefix}.SRCINFO" # extract "groups" = groups \cup provides - grep "$(printf '^\t\\(groups\\|provides\\) = ')" "${file_prefix}.SRCINFO" | \ + grep "$(printf '^\t\\(groups\\|provides\\(_i686\\)\\?\\) = ')" "${file_prefix}.SRCINFO" | \ cut -d= -f2 | \ sed 's|^\s\+||; s|[<>]$||' | \ sort -u > \ @@ -174,8 +174,8 @@ generate_package_metadata() { # extract "depends" = makedepends \cup checkdepends \cup depends \cup \{ base, base-devel \} ( printf 'all_depend = %s\n' 'base' 'base-devel' - sed -n "$(printf '/^pkgname = /q;/^\tdepends = /p')" "${file_prefix}.SRCINFO" - grep "$(printf '^\t\\(makedepends\\|checkdepends\\) = ')" "${file_prefix}.SRCINFO" + sed -n "$(printf '/^pkgname = /q;/^\tdepends\\(_i686\\)\\? = /p')" "${file_prefix}.SRCINFO" + grep "$(printf '^\t\\(makedepends\\|checkdepends\\)\\(_i686\\)\\? = ')" "${file_prefix}.SRCINFO" ) | \ cut -d= -f2 | \ sed 's|^\s\+||; s|[<>]$||' | \ -- cgit v1.2.3-54-g00ecf