summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-06 14:11:18 +0200
committerErich Eckner <git@eckner.net>2019-09-06 14:11:18 +0200
commitc7aac6ab9b86ee03ccdf5646656ebf9867dbbf96 (patch)
treef1fbb6c40ffec667f16046b8743a88cd4e56e123
parent9f22cf7d457946eb700c2c2fc76501d3d27a97f9 (diff)
downloadbuilder-c7aac6ab9b86ee03ccdf5646656ebf9867dbbf96.tar.xz
bin/return-assignment: save *some* info about the install_target_provider on rescheduling
-rwxr-xr-xbin/return-assignment10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index fada308..3e62003 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -1103,10 +1103,14 @@ cut -d' ' -f4,5 "${tmp_dir}/repository-ids" | \
printf ' FROM `dependencies`'
mysql_join_dependencies_binary_packages '' 'built_bp'
printf '%s;\n' "${join_part}"
- # TODO: set version and install_target_providers, too
+ # TODO: set _correct_ version of install_target_providers
printf 'INSERT IGNORE INTO `install_target_providers`'
- printf ' (`package`,`install_target`)'
- printf ' SELECT `new_bp`.`id`,`install_target_providers`.`install_target`'
+ printf ' (`package`,`install_target`,`version`,`install_target_is_group`)'
+ printf ' SELECT `new_bp`.`id`'
+ printf ',`install_target_providers`.`%s`' \
+ 'install_target' \
+ 'version' \
+ 'install_target_is_group'
printf ' FROM `install_target_providers`'
mysql_join_install_target_providers_binary_packages '' 'built_bp'
printf '%s;\n' "${join_part}"