diff options
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 | |
parent | a45b6352c6cea6a7e672d64e86f3984aa7dee96c (diff) | |
download | builder-af800c7e69c3234ebf6efb213c8ff149609d02e9.tar.xz |
lib/mysql-functions: omit sub_pkgrel if marked as omitted in database
-rwxr-xr-x | lib/mysql-functions | 4 |
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 ')' } |