index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-02-14 11:45:17 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-14 11:45:17 +0100 |
commit | 85b734363309052f5c5392751df574130c4d93a5 (patch) | |
tree | e6f0456ef76d074174d4ebe4fce420bcece9159e /bin/mysql-functions | |
parent | f822d014afa5a48a0335bd5babd97ecf137d9e76 (diff) |
-rwxr-xr-x | bin/mysql-functions | 7 |
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`' |