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-06-07 13:03:44 +0200
committerErich Eckner <git@eckner.net>2018-06-07 13:03:44 +0200
commitaf800c7e69c3234ebf6efb213c8ff149609d02e9 (patch)
tree2f422cf8a2c9fd59422668f547ff73a54c59a03d /lib
parenta45b6352c6cea6a7e672d64e86f3984aa7dee96c (diff)
lib/mysql-functions: omit sub_pkgrel if marked as omitted in database
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 532c283..20471e9 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -968,8 +968,8 @@ mysql_package_name_query() {
printf '`%s`.`pkgname`,"-",' "${bp_name}"
printf 'IF(`%s`.`epoch`=0,"",CONCAT(`%s`.`epoch`,":")),' "${bp_name}" "${bp_name}"
printf '`%s`.`pkgver`,"-",' "${bp_name}"
- printf '`%s`.`pkgrel`,".",' "${bp_name}"
- printf '`%s`.`sub_pkgrel`,"-",' "${bp_name}"
+ printf '`%s`.`pkgrel`,' "${bp_name}"
+ printf 'IF(`%s`.`sub_pkgrel_omitted`,"",CONCAT(".",`%s`.`sub_pkgrel`,"-")),' "${bp_name}" "${bp_name}"
printf '`%s`.`name`,".pkg.tar.xz"' "${a_name}"
printf ')'
}