summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-13 18:28:39 +0100
committerErich Eckner <git@eckner.net>2018-02-13 18:28:39 +0100
commit98e596252854ad77272b264e8124259bb141c5fb (patch)
tree7126513f7a639c329113c1bde2dfa30ee6ec5d97
parent53235d7796b666cb678483fa12d5c527d9c7b854 (diff)
downloadbuilder-98e596252854ad77272b264e8124259bb141c5fb.tar.xz
bin/mysql-functions: repository should not matter for dependencies/provided
-rwxr-xr-xbin/mysql-functions8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/mysql-functions b/bin/mysql-functions
index 1cd68cf..f30c9a2 100755
--- a/bin/mysql-functions
+++ b/bin/mysql-functions
@@ -567,8 +567,6 @@ mysql_generate_package_metadata() {
printf ' `binary_packages`'
printf ' JOIN `architectures`'
printf ' ON `binary_packages`.`architecture` = `architectures`.`id`'
- printf ' JOIN `repositories`'
- printf ' ON `binary_packages`.`repository` = `repositories`.`id`'
printf ' JOIN `install_targets`'
printf ' JOIN `%s`' "${link}"
printf ' ON `%s`.`name` = `install_targets`.`name`' "${link}"
@@ -589,10 +587,10 @@ mysql_generate_package_metadata() {
# 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' \
+ printf ' `architectures`.`name` = from_base64("%s");\n' \
"${arch}"
- printf ' `repositories`.`name` = from_base64("%s");\n' \
- "${current_repository}"
+ # the repository is of no relevance: it hardly matters for
+ # the dependencies
done
printf 'DROP TABLE `%s`;\n' \