From 59eac71b043753af2ef6d18b293a2a5e6c32ee34 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 1 Jun 2018 10:56:00 +0200 Subject: bin/find-obsolete-packages: operate on binary_packages_in_repositories instead of binary_packages --- bin/find-obsolete-packages | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/find-obsolete-packages b/bin/find-obsolete-packages index 34a1bb9..c6db3ce 100755 --- a/bin/find-obsolete-packages +++ b/bin/find-obsolete-packages @@ -123,7 +123,9 @@ fi sed ' s/^/from_base64("/ s/$/"),/ - 1 s/^/UPDATE `binary_packages` SET `is_to_be_deleted`=1 WHERE `binary_packages`.`pkgname` IN (/ + 1 s/^/UPDATE `binary_packages_in_repositories` '"$( + mysql_join_binary_packages_in_repositories_binary_packages + )"' SET `binary_packages_in_repositories`.`is_to_be_deleted`=1 WHERE `binary_packages`.`pkgname` IN (/ $ s/,$/);/ ' | \ mysql_run_query -- cgit v1.2.3-70-g09d2