Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-04 14:33:37 +0200
committerErich Eckner <git@eckner.net>2018-05-04 14:33:37 +0200
commit2f32cd172d264331bc1a19c59d3637114e049c17 (patch)
treea2ae405e785b29bb62b4972f2bb1b964d489eb0c /lib
parentb93c9bd79f8f40af59bd497727aa9c8bcf13010c (diff)
lib/mysql-functions: clean up sed mess
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions16
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}" | \