summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-08 10:48:29 +0200
committerErich Eckner <git@eckner.net>2018-06-08 10:48:29 +0200
commit32c7c136cd83ab9474fd49f5f2b400bc684722e6 (patch)
tree15c54e302aa98a98265b1e2bfd0cce1f465a77e1
parente32962196fb5c26643d7f3c02facba2b1d08c17e (diff)
downloadbuilder-32c7c136cd83ab9474fd49f5f2b400bc684722e6.tar.xz
bin/db-update: remove obsolete mangling of sub_pkgrel - the database knows wether it is omitted
-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