index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-03-08 08:38:48 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-08 08:38:48 +0100 |
commit | 344682e7a5bb10dc9b3eed360845223247525c9f (patch) | |
tree | 7e30f4d7fe60b6e48d96678490ed7329f1c2073f /bin/db-update | |
parent | 7e0a82e87099700c990c64e75ffef6e6792153a4 (diff) |
-rwxr-xr-x | bin/db-update | 27 |
diff --git a/bin/db-update b/bin/db-update index 5756494..9a5fb1f 100755 --- a/bin/db-update +++ b/bin/db-update @@ -564,6 +564,33 @@ for ending in 'done' 'tested'; do fi done +{ + printf 'CALL calculate_maximal_moveable_set("testing");\n' + printf 'SELECT "mv",' + mysql_package_name_query + printf ',`repositories`.`name`,`new_repo`.`name`' + printf ' FROM `moveable_binary_packages`' + printf ' JOIN `binary_packages` ON `moveable_binary_packages`.`id`=`binary_packages`.`id`' + mysql_join_binary_packages_repositories + mysql_join_binary_packages_architectures + mysql_join_binary_packages_build_assignments + mysql_join_build_assignments_package_sources + mysql_join_package_sources_upstream_repositories + mysql_join_upstream_repositories_repository_moves + printf ' AND `repositories`.`id`=`repository_moves`.`from_repository`' + printf ' JOIN `repositories` AS `new_repo` ON `new_repo`.`id`=`repository_moves`.`to_repository`' + printf ';\n' + printf 'SELECT "rm",' + mysql_package_name_query + printf ',`repositories`.`name`' + printf ' FROM `replaced_binary_packages`' + printf ' JOIN `binary_packages` ON `replaced_binary_packages`.`id`=`binary_packages`.`id`' + mysql_join_binary_packages_repositories + mysql_join_binary_packages_architectures + printf ';\n' +} | \ + mysql_run_query -N --raw --batch + # packages which are done find "${work_dir}/package-states" -maxdepth 1 -type f -name '*.done' -printf '%f\n' | \ |