From de26d3c539b999a771eeba329f24fc593d9672ed Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 12 Nov 2021 22:12:17 +0100 Subject: bin/delete-packages: do not attempt to delete packages which are not on the master mirror --- bin/delete-packages | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/delete-packages b/bin/delete-packages index 2bb3072..0026c88 100755 --- a/bin/delete-packages +++ b/bin/delete-packages @@ -160,7 +160,8 @@ export TMPDIR="${tmp_dir}" mysql_join_binary_packages_in_repositories_binary_packages mysql_join_binary_packages_in_repositories_repositories mysql_join_repositories_architectures - printf ' WHERE CONCAT(' + printf ' WHERE `repositories`.`is_on_master_mirror`' + printf ' AND CONCAT(' printf '`architectures`.`name`,"/",' printf '`repositories`.`name`,"/",' printf '`binary_packages`.`pkgname`' -- cgit v1.2.3-70-g09d2