Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-17 11:00:34 +0200
committerErich Eckner <git@eckner.net>2019-10-17 11:00:34 +0200
commite1949ad20973a38581c6503cfb0438c24e469211 (patch)
tree7d04eb39627f2331a10433cb66c31fb69c98bc38 /lib/mysql-functions
parent7ea8bac9b1cbe09f425cff4dc22bdb614ae9a65c (diff)
lib/mysql-functions: mysql_generate_package_metadata(): explicitely set compression of binary_packages
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 9e56319..2956434 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -463,7 +463,8 @@ mysql_generate_package_metadata() {
printf '`pkgver`,'
printf '`pkgrel`,'
printf '`sub_pkgrel`,'
- printf '`architecture`'
+ printf '`architecture`,'
+ printf '`compression`'
printf ') SELECT'
printf ' `build_assignments`.`id`,'
printf '`links`.`%s`,' \
@@ -472,7 +473,10 @@ mysql_generate_package_metadata() {
'pkgver' \
'pkgrel'
printf '@sub_pkgrel,'
- printf '`architectures`.`id`'
+ printf '`architectures`.`id`,'
+# TODO: somehow extract the compression from the PKGBUILD (?)
+ printf '%s' \
+ "${compression_ids__tar_xz}"
printf ' FROM `links`'
printf ' JOIN `architectures`'
printf ' ON `links`.`architecture`=`architectures`.`name`'