Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-08 10:46:37 +0100
committerErich Eckner <git@eckner.net>2018-02-08 10:46:37 +0100
commitfd4fbd34ec608f22394a6367ced9bdcf3b13ce6a (patch)
treecb3ef88708e6d69351b324fe12c42924da37c9aa /bin
parent9ec11f6a3948a1840dc25f7186d688e6634096ea (diff)
bin/get-package-updates: removing a package from the deletion list should remove is_to_be_deleted markers, too
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates12
1 files changed, 12 insertions, 0 deletions
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}"