summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-14 16:24:15 +0200
committerErich Eckner <git@eckner.net>2018-05-14 16:24:15 +0200
commit283fc7692b55761479efe7e9f1fd48f244e5bd9b (patch)
treef629e4d2379865c414a60ce7df9d6c886a2db5e9 /bin/return-assignment
parent6ab57ae83ccc30eade1c1ad069b18856571c339c (diff)
downloadbuilder-283fc7692b55761479efe7e9f1fd48f244e5bd9b.tar.xz
bin/return-assignment: keep binary_packages_in_repositories.repository up-to-date
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index bf5d6ab..f8f5546 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -572,8 +572,16 @@ trigger_mirror_refreshs
# remove from build-list
printf 'UPDATE `binary_packages`'
+ printf ' LEFT'
+ mysql_join_binary_packages_binary_packages_in_repositories
printf ' SET'
- printf ' `binary_packages`.`repository`=from_base64("%s"),' \
+ printf ' `binary_packages%s`.`repository`=from_base64("%s"),' \
+ '' \
+ "$(
+ printf '%s' "${destination_id}" | \
+ base64 -w0
+ )" \
+ '_in_repositories' \
"$(
printf '%s' "${destination_id}" | \
base64 -w0