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-02-19 09:14:07 +0100
committerErich Eckner <git@eckner.net>2019-02-19 09:14:07 +0100
commit99aedd94397fd88865c315cdcae59195ab03e399 (patch)
treeacb3608fca341c6853526639a429ed7feffc9653
parent5c0ef4a5297f9164a2e970b1030d068da531683a (diff)
bin/return-assignment: fill new column
-rwxr-xr-xbin/return-assignment5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index b0c12d7..01ea4cd 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -833,7 +833,7 @@ trigger_mirror_refreshs
printf 'COMMIT;\n'
if [ "${lib_link%:*}" = 'pl' ]; then
- printf 'INSERT IGNORE INTO `install_target_providers` (`package`,`install_target`,`version`)'
+ printf 'INSERT IGNORE INTO `install_target_providers` (`package`,`install_target`,`install_target_is_group`,`version`)'
else
printf 'INSERT IGNORE INTO `dependencies` (`dependent`,`depending_on`,`dependency_type`,`version_relation`,`version`)'
fi
@@ -843,6 +843,8 @@ trigger_mirror_refreshs
printf '`dependency_types`.`id`,'
printf '`%s`.`relation`,' \
"${lib_link%:*}"
+ else
+ printf '0,'
fi
printf '`versions`.`id`'
printf ' FROM `install_targets`'
@@ -971,6 +973,7 @@ trigger_mirror_refreshs
printf ' FROM `dependencies`'
mysql_join_dependencies_binary_packages '' 'built_bp'
printf '%s;\n' "${join_part}"
+ # TODO: set version and install_target_providers, too
printf 'INSERT IGNORE INTO `install_target_providers`'
printf ' (`package`,`install_target`)'
printf ' SELECT `new_bp`.`id`,`install_target_providers`.`install_target`'