diff options
-rwxr-xr-x | bin/delete-packages | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/bin/delete-packages b/bin/delete-packages index a1cdd78..68df4c0 100755 --- a/bin/delete-packages +++ b/bin/delete-packages @@ -283,22 +283,6 @@ while read -r arch repo; do "${master_mirror_rsync_directory}/${arch}/${repo}/${repo}.files.tar.gz" \ "${tmp_dir}/repos/${arch}" - tar -Oxzf "${tmp_dir}/repos/${arch}/${repo}.db.tar.gz" --wildcards '*/desc' | \ - sed -n ' - /^%FILENAME%$/{ - N - s/^\S\+\n\(\S\+-[^-.]\+\)\(-[^-]\+\)/\1.0\2 \1\2/ - T - p - } - ' | \ - while read -r old new; do - printf 's,/%s\\(\\.sig\\)\\?$,/%s\\1,\n' \ - "$(str_to_regex "${old}")" \ - "$(str_to_regex "${new}")" - done >> \ - "${tmp_dir}/sub_pkgrel-removal.sed" - # shellcheck disable=SC2046 repo-remove "${tmp_dir}/repos/${arch}/${repo}.db.tar.gz" \ $( @@ -314,10 +298,6 @@ while read -r arch repo; do done < \ "${tmp_dir}/repositories" -if [ -s "${tmp_dir}/sub_pkgrel-removal.sed" ]; then - sed -i -f "${tmp_dir}/sub_pkgrel-removal.sed" "${tmp_dir}/package-files" -fi - if ${no_action}; then printf 'Now, I would remove the packages from the database and delete the following files from the master mirror:\n' sed ' |