Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-07 13:17:35 +0200
committerErich Eckner <git@eckner.net>2018-06-07 13:17:35 +0200
commitffd6a5a6f648942fb53392afe3187140941e8e74 (patch)
treec56c08f805216fe484ed24cc4b99bb18ca9c0356
parent6a329888b446ed9173c47ada5a3e01977cf4273c (diff)
bin/delete-packages: replace magic by sub_pkgrel_omitted information
-rwxr-xr-xbin/delete-packages20
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 '