From 24e1fd05ead6daf0acda29ba30d22441a6915955 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 11 Jun 2018 16:29:30 +0200 Subject: lib/common-functions: remove_old_package_versions(): read bpir_ids from stdin, do not fail on non-existend action files --- bin/copy-to-build-support | 4 +--- bin/return-assignment | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support index 1840855..a60f058 100755 --- a/bin/copy-to-build-support +++ b/bin/copy-to-build-support @@ -187,9 +187,7 @@ if [ -s "${tmp_dir}/mysql-command" ]; then mysql_run_query < \ "${tmp_dir}/mysql-command" | \ sort -u | \ - while read -r bpir_id; do - remove_old_package_versions "${bpir_id}" - done + remove_old_package_versions fi if [ -w "$1" ]; then diff --git a/bin/return-assignment b/bin/return-assignment index c55f61b..220d928 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -722,7 +722,4 @@ trigger_mirror_refreshs } | \ mysql_run_query | \ sort -u | \ - while read -r bpir_id; do - # TODO: this needs to get faster, it is currently the bottleneck - remove_old_package_versions "${bpir_id}" - done + remove_old_package_versions -- cgit v1.2.3-70-g09d2