summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-07 13:30:14 +0200
committerErich Eckner <git@eckner.net>2018-06-07 13:30:14 +0200
commit11f58822187efc9d1ecb53843cfe2627f271fac9 (patch)
tree434cd05c598cece01aa736915c56daf9765c54ea /lib
parent97d5076300f3c56464bb3eabe426ceb2c9681e1c (diff)
downloadbuilder-11f58822187efc9d1ecb53843cfe2627f271fac9.tar.xz
lib/common-functions: remove_old_package_versions(): ommit sub_pkgrel if sub_pkgrel_omitted
Diffstat (limited to 'lib')
-rwxr-xr-xlib/common-functions4
1 files changed, 2 insertions, 2 deletions
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`,'