index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/db-update | 18 |
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 |