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-mysql4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql
index 30261c6..5e43e9c 100755
--- a/bin/bootstrap-mysql
+++ b/bin/bootstrap-mysql
@@ -200,7 +200,6 @@ fi
printf ' ON `binary_packages_in_repositories`.`id`=`moveable_bpir`.`id`'
printf ' JOIN `repositories` AS `target_repositories`'
printf ' ON `moveable_bpir`.`to_repository`=`target_repositories`.`id`'
-# TODO: version must be checked, too!
mysql_join_binary_packages_in_repositories_binary_packages
mysql_join_binary_packages_dependencies
mysql_join_dependencies_dependency_types
@@ -233,10 +232,13 @@ fi
printf ') AND NOT EXISTS ('
printf 'SELECT 1'
printf ' FROM `install_target_providers`'
+ mysql_join_install_target_providers_versions '' 'prov_v'
mysql_join_install_target_providers_binary_packages_in_repositories '' 'itp_bpir'
printf ' JOIN `moveable_bpir_copy`'
printf ' ON `moveable_bpir_copy`.`id`=`itp_bpir`.`id`'
printf ' WHERE `install_target_providers`.`install_target`=`dependencies`.`depending_on`'
+ printf ' AND '
+ mysql_query_ordering_correct '`versions`.`order`' '`prov_v`.`order`' '`dependencies`.`version_relation`'
printf ');\n'
printf 'SET row_count_saved = row_count_saved + ROW_COUNT();\n'