Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-13 11:49:23 +0100
committerErich Eckner <git@eckner.net>2018-02-13 11:49:23 +0100
commitc4ead6b43d4731065939e38ee7d8977ce50158ce (patch)
tree2bdbb114b7a75e9ca94ee10c008e28b43cca139c
parent07ed3c88e045d84ab282272c9f1b675c15487ba1 (diff)
bin/mysql-functions: do not match the sub_pkgrel on inserting provided install_targets and dependencies
-rwxr-xr-xbin/mysql-functions8
1 files 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' \