Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/bootstrap-mysql
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bootstrap-mysql')
-rwxr-xr-xbin/bootstrap-mysql29
1 files changed, 29 insertions, 0 deletions
diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql
index 1f8ab1a..9b6ab97 100755
--- a/bin/bootstrap-mysql
+++ b/bin/bootstrap-mysql
@@ -737,20 +737,49 @@ fi
printf ' WHERE EXISTS ('
printf 'SELECT 1'
printf ' FROM `install_target_providers`'
+ mysql_join_install_target_providers_binary_packages
+ printf ' JOIN `architectures`'
+ printf ' ON ('
+ printf '`architectures`.`id`=`binary_packages`.`architecture`'
+ printf ' OR `binary_packages`.`architecture`=%s' \
+ "${architecture_ids__any}"
+ printf ')'
printf ' WHERE `install_target_providers`.`install_target`=`dependencies`.`depending_on`'
+ printf ' AND ('
+ printf '`architectures`.`id`=`a_ba`.`architecture`'
+ printf ' OR `a_ba`.`architecture`=%s' \
+ "${architecture_ids__any}"
+ printf ')'
printf ') AND NOT EXISTS ('
printf 'SELECT 1'
printf ' FROM `install_target_providers`'
+ mysql_join_install_target_providers_binary_packages
+ printf ' JOIN `architectures`'
+ printf ' ON ('
+ printf '`architectures`.`id`=`binary_packages`.`architecture`'
+ printf ' OR `binary_packages`.`architecture`=%s' \
+ "${architecture_ids__any}"
+ printf ')'
printf ' WHERE NOT EXISTS ('
printf 'SELECT 1'
printf ' FROM `bl_copy`'
printf ' JOIN `package_sources` AS `b_ps`'
printf ' ON `bl_copy`.`pkgbase`=`b_ps`.`pkgbase`'
mysql_join_package_sources_build_assignments 'b_ps' 'b_ba'
+ printf ' AND ('
+ printf '`b_ba`.`architecture`=`bl_copy`.`arch`'
+ printf ' OR `bl_copy`.`arch`=%s' \
+ "${architecture_ids__any}"
+ printf ')'
mysql_join_build_assignments_binary_packages 'b_ba' 'b_bp'
printf ' WHERE `install_target_providers`.`package`=`b_bp`.`id`'
printf ')'
printf ' AND `install_target_providers`.`install_target`=`dependencies`.`depending_on`'
+ printf ' AND ('
+ printf '`architectures`.`id`=`a_ba`.`architecture`'
+ printf ' OR `a_ba`.`architecture`=%s' \
+ "${architecture_ids__any}"
+ printf ')'
printf ');\n'
printf 'UNTIL ROW_COUNT()=0\n'