diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-03 20:02:25 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-09 00:26:23 +0100 |
commit | 6a636b2b6ec92046b010b7a4a593d3aabe253ef8 (patch) | |
tree | 21da2fdd60ded71af55d4c61c519d0f5a650451b /scripts/rankmirrors.sh.in | |
parent | 687f7b6ba833db836d8d8387c5b728238b0eac5d (diff) | |
download | pacman-6a636b2b6ec92046b010b7a4a593d3aabe253ef8.tar.gz pacman-6a636b2b6ec92046b010b7a4a593d3aabe253ef8.tar.xz |
pacman-optimize: standardize on openssl usage, only touch local/
The rest of our scripts have been using `openssl dgst` rather than tools
like `md5sum` for some time, so convert this one too. We also make the
following other adjustments:
* Use a `find -print0 | xargs -0` pipeline so paths with spaces and or
newlines don't totally kill us.
* Ensure the files we write out contain only paths relative to the
database root, where we know the filenames should all be sane.
* Remove use of `diff`, this was the only time we used it in scripts and
we can get a cheap substitute by comparing file checksums instead.
* Only touch the local/ part of the database. It makes little sense to
do anything to the sync/ directory anymore as they are compressed
single files that should be regularly written out in full and won't be
fragmented on any sane filesystem.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/rankmirrors.sh.in')
0 files changed, 0 insertions, 0 deletions