Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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}"