summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-31 13:27:18 +0200
committerErich Eckner <git@eckner.net>2018-05-31 13:27:18 +0200
commit8dde526290718371b6da178c65955d431910fd97 (patch)
treeb758ee02e490fa2c1348ff780699a50330bdae03 /bin/get-package-updates
parent38839007b3cbcdc91bea10c7e1328a2f12a942af (diff)
downloadbuilder-8dde526290718371b6da178c65955d431910fd97.tar.xz
fill new columns in `binary_packages_in_repositories`, too
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 34e9753..6c4c5f9 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -128,9 +128,13 @@ delete_package() {
mysql_join_binary_packages_build_assignments
mysql_join_build_assignments_package_sources
mysql_join_binary_packages_binary_packages_in_repositories
+ printf ' SET '
# shellcheck disable=SC2154
- printf ' SET `binary_packages_in_repositories`.`repository`=%s' \
- "${repository_ids__any_deletion_list}"
+ printf '`binary_packages_in_repositories`.`%s`=%s,' \
+ 'repository' "${repository_ids__any_deletion_list}" \
+ 'is_to_be_deleted' '1' \
+ 'last_moved' 'NOW()' | \
+ sed 's/,$//'
# shellcheck disable=SC2154
printf ' WHERE `binary_packages_in_repositories`.`repository` in (%s,%s)' \
"${repository_ids__any_build_list}" \