From c4ead6b43d4731065939e38ee7d8977ce50158ce Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 13 Feb 2018 11:49:23 +0100 Subject: bin/mysql-functions: do not match the sub_pkgrel on inserting provided install_targets and dependencies --- bin/mysql-functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/mysql-functions b/bin/mysql-functions index 491b794..68bc37d 100755 --- a/bin/mysql-functions +++ b/bin/mysql-functions @@ -583,8 +583,12 @@ mysql_generate_package_metadata() { 'pkgver' "${pkgver}" \ 'pkgrel' "${pkgrel}" \ 'pkgname' "${pkgname}" - printf ' `binary_packages`.`sub_pkgrel` = %s AND' \ - "${sub_pkgrel}" + # we do not want to match the sub_pkgrel: + # a) it is tedious to do so (because it may be calculated + # dynamically) + # b) it is not necessary to do so: if only the sub_pkgrel + # changed, the dependencies and provided install_targets + # should not have changed printf ' `architectures`.`name` = from_base64("%s") AND' \ "${arch}" printf ' `repositories`.`name` = from_base64("%s");\n' \ -- cgit v1.2.3-54-g00ecf