diff options
author | Erich Eckner <git@eckner.net> | 2018-09-06 09:29:01 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-06 09:29:01 +0200 |
commit | 6e7146152133a7f53063d6bd4a694c734c63dcfe (patch) | |
tree | 05f8e4fb84228d96684f92ff6b80cf07ae8ffa1a /lib/mysql-functions | |
parent | 0cf0640014b4b6c1d7939a7afe730b5f69426cdf (diff) | |
download | builder-6e7146152133a7f53063d6bd4a694c734c63dcfe.tar.xz |
lib/mysql-functions: mysql_generate_package_metadata(): packages in to-be-decided should not be added with increased sub_pkgrel
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-x | lib/mysql-functions | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions index 69c782e..37635d5 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -394,8 +394,9 @@ mysql_generate_package_metadata() { printf 'SELECT IFNULL(' printf 'MAX(' printf '`binary_packages`.`sub_pkgrel`+' - printf 'IF(`binary_packages_in_repositories`.`repository`!=%s,1,0)' \ - "${repository_ids__any_build_list}" + printf 'IF(`binary_packages_in_repositories`.`repository` IN (%s,%s),0,1)' \ + "${repository_ids__any_build_list}" \ + "${repository_ids__any_to_be_decided}" printf '),' printf '0' printf ')' |