summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-07 13:07:55 +0200
committerErich Eckner <git@eckner.net>2018-06-07 13:07:55 +0200
commitf5b3df8e4e9b04a7f06f1051fc1f90c3de443747 (patch)
treef19d4a0be7d599436924df38fa602543b7093c45
parentb81b5a8d44247d449843d49c5be8cb3c42ce4664 (diff)
downloadbuilder-f5b3df8e4e9b04a7f06f1051fc1f90c3de443747.tar.xz
lib/mysql-functions: do not remove hyphen when sub_pkgrel is omitted
-rwxr-xr-xlib/mysql-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 140f910..0de438f 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -969,7 +969,7 @@ mysql_package_name_query() {
printf 'IF(`%s`.`epoch`=0,"",CONCAT(`%s`.`epoch`,":")),' "${bp_name}" "${bp_name}"
printf '`%s`.`pkgver`,"-",' "${bp_name}"
printf '`%s`.`pkgrel`,' "${bp_name}"
- printf 'IF(`%s`.`sub_pkgrel_omitted`,"",CONCAT(".",`%s`.`sub_pkgrel`,"-")),' "${bp_name}" "${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 ')'
}