From ffd6a5a6f648942fb53392afe3187140941e8e74 Mon Sep 17 00:00:00 2001
From: Erich Eckner <git@eckner.net>
Date: Thu, 7 Jun 2018 13:17:35 +0200
Subject: bin/delete-packages: replace magic by sub_pkgrel_omitted information

---
 bin/delete-packages | 20 --------------------
 1 file changed, 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 '
-- 
cgit v1.2.3-70-g09d2