summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mysql-functions')
-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 ')'
}