index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-06-07 13:03:44 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-07 13:03:44 +0200 |
commit | af800c7e69c3234ebf6efb213c8ff149609d02e9 (patch) | |
tree | 2f422cf8a2c9fd59422668f547ff73a54c59a03d /lib | |
parent | a45b6352c6cea6a7e672d64e86f3984aa7dee96c (diff) |
-rwxr-xr-x | lib/mysql-functions | 4 |
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 ')' } |