From af800c7e69c3234ebf6efb213c8ff149609d02e9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Jun 2018 13:03:44 +0200 Subject: lib/mysql-functions: omit sub_pkgrel if marked as omitted in database --- lib/mysql-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 ')' } -- cgit v1.2.3-70-g09d2