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>2019-01-17 14:34:57 +0100
committerErich Eckner <git@eckner.net>2019-01-17 14:34:57 +0100
commit294c66ccc56ee6200b288585833cae1d1bfc3ea8 (patch)
tree94f86681d53a78f02ecae401cf879ed0a828637c
parentff791f0a90743def1feeec7c0011d753fb15408d (diff)
bin/bootstrap-mysql: add all packages to package_blobs, so we move split packages together, too
-rwxr-xr-xbin/bootstrap-mysql10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql
index c73b1e5..75043e6 100755
--- a/bin/bootstrap-mysql
+++ b/bin/bootstrap-mysql
@@ -100,6 +100,16 @@ fi
printf ' AND NOT `binary_packages`.`has_issues`'
printf ';\n'
+ # add all considered packages, so we move split packages together, too
+ printf 'INSERT IGNORE INTO `package_blobs` (`ps_a`,`ps_b`)'
+ printf ' SELECT `package_sourcess`.`id`,`package_sources`.`id`'
+ printf ' FROM `package_sources`'
+ mysql_join_package_sources_build_assignments
+ mysql_join_build_assignments_binary_packages
+ mysql_join_binary_packages_binary_packages_in_repositories
+ mysql_join_binary_packages_in_repositories_repositories
+ printf ' WHERE `repositories`.`stability`=`from_stability`;\n'
+
# these packages are considered for being replaced:
# for each moved package
printf 'INSERT IGNORE INTO `replaced_bpir` (`id`,`replaced_by`)'