Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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}" | \