index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-06-08 10:48:29 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-08 10:48:29 +0200 |
commit | 32c7c136cd83ab9474fd49f5f2b400bc684722e6 (patch) | |
tree | 15c54e302aa98a98265b1e2bfd0cce1f465a77e1 /bin/db-update | |
parent | e32962196fb5c26643d7f3c02facba2b1d08c17e (diff) |
-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 |