From 11f58822187efc9d1ecb53843cfe2627f271fac9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Jun 2018 13:30:14 +0200 Subject: lib/common-functions: remove_old_package_versions(): ommit sub_pkgrel if sub_pkgrel_omitted --- lib/common-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/common-functions') diff --git a/lib/common-functions b/lib/common-functions index 329e2e3..3853089 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -137,8 +137,8 @@ remove_old_package_versions() { printf 'CONCAT(' printf 'IF(`d_bp`.`epoch`=0,"",CONCAT(`d_bp`.`epoch`,":")),' printf '`d_bp`.`pkgver`,"-",' - printf '`d_bp`.`pkgrel`,".",' - printf '`d_bp`.`sub_pkgrel`' + printf '`d_bp`.`pkgrel`,' + printf 'IF(`d_bp`.`sub_pkgrel_omitted`,"",CONCAT(".",`d_bp`.`sub_pkgrel`))' printf '),' printf 'IF(`d_r`.`id`=`o_r`.`id`,1,0),' printf '`d_ra`.`name`,' -- cgit v1.2.3-70-g09d2