From 32c7c136cd83ab9474fd49f5f2b400bc684722e6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 8 Jun 2018 10:48:29 +0200 Subject: bin/db-update: remove obsolete mangling of sub_pkgrel - the database knows wether it is omitted --- bin/db-update | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3