From 75eee3c091714d13638afdfadc79b8d29537f22f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 1 Feb 2018 16:35:05 +0100 Subject: bin/copy-to-build-support: removing of old build-support packages started --- bin/copy-to-build-support | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin') diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support index f9eb53c..8a25f05 100755 --- a/bin/copy-to-build-support +++ b/bin/copy-to-build-support @@ -52,6 +52,8 @@ trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT repository="${id#* }" id="${id%% *}" + printf '%s' "${package}" >> \ + "${tmp_dir}/packages" for suffix in '' '.sig'; do printf 'ln "i686/%s/%s%s" "i686/build-support/%s%s"\n' \ "${repository}" \ @@ -113,3 +115,11 @@ ${master_mirror_rsync_command} \ "${tmp_dir}/build-support.db."* \ "${tmp_dir}/build-support.files."* \ "${master_mirror_rsync_directory}/i686/build-support/" + +# TODO: This does not work correctly yet! +if [ -s "${tmp_dir}/packages" ]; then + while read -r package; do + remove_old_package_versions 'i686' 'build-support' "${package}" + done < \ + "${tmp_dir}/packages" +fi -- cgit v1.2.3-70-g09d2