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>2018-09-15 21:29:07 +0200
committerErich Eckner <git@eckner.net>2018-09-15 21:29:07 +0200
commit88ef27891c7279c7e7860f0e51556f98f000c081 (patch)
treec9fa59617d8f513f44a13796fc4f670b0913512c
parentcb7f9b87327c1f6cfa1e96bcfe08b6825bc48782 (diff)
bin/return-assignment: fill all columns of `dependencies`
-rwxr-xr-xbin/return-assignment9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index aacf928..23486e2 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -825,8 +825,13 @@ trigger_mirror_refreshs
printf ' FROM `binary_packages` AS `built_bp`'
printf '%s;\n' "${join_part}"
printf 'INSERT IGNORE INTO `dependencies`'
- printf ' (`dependent`,`depending_on`,`dependency_type`)'
- printf ' SELECT `new_bp`.`id`,`dependencies`.`depending_on`,`dependencies`.`dependency_type`'
+ printf ' (`dependent`,`depending_on`,`dependency_type`,`version`,`version_relation`)'
+ printf ' SELECT `new_bp`.`id`'
+ printf ',`dependencies`.`%s`' \
+ 'depending_on' \
+ 'dependency_type' \
+ 'version' \
+ 'version_relation'
printf ' FROM `dependencies`'
mysql_join_dependencies_binary_packages '' 'built_bp'
printf '%s;\n' "${join_part}"