From fd4fbd34ec608f22394a6367ced9bdcf3b13ce6a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 8 Feb 2018 10:46:37 +0100 Subject: bin/get-package-updates: removing a package from the deletion list should remove is_to_be_deleted markers, too --- bin/get-package-updates | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bin/get-package-updates') diff --git a/bin/get-package-updates b/bin/get-package-updates index 180e0ae..8c758c5 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -323,6 +323,18 @@ done | \ base64 -w0 )" printf ' AND (`repositories`.`name`="build-list" OR `repositories`.`name`="deletion-list");\n' + # remove is-to-be-deleted marker from old binary packages + printf 'UPDATE `binary_packages`' + printf ' JOIN `%s` ON `%s`.`id`=`%s`.`%s`' \ + 'build_assignments' 'build_assignments' 'binary_packages' 'build_assignment' \ + 'package_sources' 'package_sources' 'build_assignments' 'package_source' \ + 'repositories' 'repositories' 'binary_packages' 'repository' + printf ' SET `is_to_be_deleted`=0' + printf ' WHERE `package_sources`.`pkgbase`=from_base64("%s")\;' \ + "$( + printf '%s' "${package}" | \ + base64 -w0 + )" } | \ ${mysql_command} mysql_generate_package_metadata "${package}" "${git_revision}" "${new_repo_revisions__archlinux32}" "${repository}" -- cgit v1.2.3-70-g09d2