From 2f32cd172d264331bc1a19c59d3637114e049c17 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 4 May 2018 14:33:37 +0200 Subject: lib/mysql-functions: clean up sed mess --- lib/mysql-functions | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'lib') diff --git a/lib/mysql-functions b/lib/mysql-functions index bc0d26f..e830cf5 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -339,20 +339,12 @@ mysql_generate_package_metadata() { base64 -w0 ) sed -n ' - /^pkgbase = \|^pkgname = '"$(str_to_regex "${pkgname}")"'$/{ - :a - N - /\n$/{ - p - T - } - ba - } - ' "${temp_dir}/SRCINFO" | \ - sed ' + /^pkgbase = \|^pkgname = '"$(str_to_regex "${pkgname}")"'$/,/^$/ { /^\S/d s/^\s*// - ' > \ + p + } + ' "${temp_dir}/SRCINFO" > \ "${temp_dir}/BINARYINFO.${pkgname64}" grep '^arch = ' "${temp_dir}/BINARYINFO.${pkgname64}" | \ -- cgit v1.2.3-70-g09d2