From dc6a8a45cac8d947863ec8508aaba07315e24c8c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 14 Sep 2018 11:04:22 +0200 Subject: bin/seed-build-list: fix sed logic --- bin/seed-build-list | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/seed-build-list b/bin/seed-build-list index 2cabe38..75e450d 100755 --- a/bin/seed-build-list +++ b/bin/seed-build-list @@ -177,7 +177,9 @@ if [ -s "${tmp_dir}/mirrors" ]; then N s/^.*\n// /^lib32-/d - s/^\(.*-\)x86_64\(\.pkg\.tar\.xz\)$/\1i686\2\n\1i486\2/ + s/^\(.*-\)x86_64\(\.pkg\.tar\.xz\)$/\1i486\2\n\1i686\2/ + ' | \ + sed ' s/^\(.*\)-\([^-]\+-[^-]\+\)-\([^-]\+\)$/theirs \2 \3 \1/ ' done @@ -217,6 +219,9 @@ if [ -s "${tmp_dir}/mirrors" ]; then "${tmp_dir}/pkgnames" fi +grep -HF '' "${tmp_dir}/pkgbases" "${tmp_dir}/pkgnames" +exit 4 + # harvest pkgnames from undelete-mirrors if [ -s "${tmp_dir}/undelete-mirrors" ]; then while read -r mirror; do @@ -230,8 +235,10 @@ if [ -s "${tmp_dir}/undelete-mirrors" ]; then /^%FILENAME%$/!d N s/^.*\n// - s/^\(.*-\)x86_64\(\.pkg\.tar\.xz\)$/\1i686\2\n\1i486\2/ /^lib32-/d + s/^\(.*-\)x86_64\(\.pkg\.tar\.xz\)$/\1i486\2\n\1i686\2/ + ' | \ + sed ' s/^\(.*\)\(-[^-]\+\)\{3\}$/\1/ ' done -- cgit v1.2.3-70-g09d2