Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update18
1 files changed, 1 insertions, 17 deletions
diff --git a/bin/db-update b/bin/db-update
index d732502..ea0f2e9 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -327,24 +327,8 @@ for source_stability in \
"${master_mirror_rsync_directory}/${arch}/${repo}/${repo}.db."* \
"${master_mirror_rsync_directory}/${arch}/${repo}/${repo}.files."* \
"${tmp_dir}/dbs/${arch}/${repo}/"
- tar -Oxzf "${tmp_dir}/dbs/${arch}/${repo}/${repo}.db.tar.gz" --wildcards '*/desc' | \
- sed -n '
- /^%FILENAME%$/{
- N
- s/^\S\+\n\(\S\+-[^-.]\+\)\(-[^-]\+\)/\1.0\2 \1\2/
- T
- p
- }
- '
done < \
- "${tmp_dir}/repositories" | \
- while read -r old new; do
- for file in 'rm' 'mv'; do
- sed -i '
- s/\(\s\|^\)'"$(str_to_regex "${old}")"'\(\s\|$\)/\1'"${new}"'\2/
- ' "${tmp_dir}/${file}"
- done
- done
+ "${tmp_dir}/repositories"
# remove to-be-deleted packages
# shellcheck disable=SC2094