From 85b734363309052f5c5392751df574130c4d93a5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Feb 2018 11:45:17 +0100 Subject: bin/mysql-functions: do not increase sub_pkgrel for packages in $current_repo, too (-> split packages should receive identical sub_pkgrels!) --- bin/mysql-functions | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/mysql-functions b/bin/mysql-functions index f30c9a2..d1a8c2a 100755 --- a/bin/mysql-functions +++ b/bin/mysql-functions @@ -424,7 +424,9 @@ mysql_generate_package_metadata() { else sub_pkgrel=$( printf '(SELECT COALESCE(' - # do not add binary packages which are currently on the build-list + # do not add binary packages which are currently on the + # build-list or in $current_repository (beware of split + # packages!) printf '(SELECT `sub_pkgrel` FROM `binary_packages`' printf ' JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`' printf ' JOIN `repositories` ON `binary_packages`.`repository`=`repositories`.`id`' @@ -436,7 +438,8 @@ mysql_generate_package_metadata() { 'pkgname' "${pkgname}" printf ' `architectures`.`name`=from_base64("%s")' \ "${arch}" - printf ' AND `repositories`.`name`="build-list"),' + printf ' AND `repositories`.`name` IN ("build-list",from_base64("%s"))),' \ + "${current_repository}" # max(sub_pkgrel)+1 printf '(SELECT 1+MAX(`binary_packages`.`sub_pkgrel`) FROM `binary_packages`' printf ' JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`' -- cgit v1.2.3-70-g09d2