diff options
author | Erich Eckner <git@eckner.net> | 2018-05-04 14:33:37 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-04 14:33:37 +0200 |
commit | 2f32cd172d264331bc1a19c59d3637114e049c17 (patch) | |
tree | a2ae405e785b29bb62b4972f2bb1b964d489eb0c | |
parent | b93c9bd79f8f40af59bd497727aa9c8bcf13010c (diff) | |
download | builder-2f32cd172d264331bc1a19c59d3637114e049c17.tar.xz |
lib/mysql-functions: clean up sed mess
-rwxr-xr-x | lib/mysql-functions | 16 |
1 files changed, 4 insertions, 12 deletions
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}" | \ |