summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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`'