diff options
author | Erich Eckner <git@eckner.net> | 2018-02-01 16:35:05 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-01 16:35:05 +0100 |
commit | 75eee3c091714d13638afdfadc79b8d29537f22f (patch) | |
tree | e3a0fbd99f49b2f1eb7b87e2947e8814ba2e8880 /bin/copy-to-build-support | |
parent | fbe2bc8a42570944d2b5fc8471bc43c568bdf3c2 (diff) | |
download | builder-75eee3c091714d13638afdfadc79b8d29537f22f.tar.xz |
bin/copy-to-build-support: removing of old build-support packages started
Diffstat (limited to 'bin/copy-to-build-support')
-rwxr-xr-x | bin/copy-to-build-support | 10 |
1 files changed, 10 insertions, 0 deletions
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 |