summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-01 10:56:00 +0200
committerErich Eckner <git@eckner.net>2018-06-01 10:56:00 +0200
commit59eac71b043753af2ef6d18b293a2a5e6c32ee34 (patch)
tree9115480967d496596f7ffa5da05036c67aa81d11
parentf5135e09eafd70165c361bac828400a274a7e2c5 (diff)
downloadbuilder-59eac71b043753af2ef6d18b293a2a5e6c32ee34.tar.xz
bin/find-obsolete-packages: operate on binary_packages_in_repositories instead of binary_packages
-rwxr-xr-xbin/find-obsolete-packages4
1 files changed, 3 insertions, 1 deletions
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