diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-11 17:04:15 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-11 17:04:15 +0000 |
commit | a1ffb1a17c9cb1c32c4ba6d15d5ea07813763fce (patch) | |
tree | 0556c3128c4ccf2a889be05753399dd0b5dec3f0 | |
parent | 04c54f7a2b045183afb400581ae088642fdd0a92 (diff) | |
download | cpt-a1ffb1a17c9cb1c32c4ba6d15d5ea07813763fce.tar.gz |
kiss: speed up rsync commands
FossilOrigin-Name: 93b3d3e8bd3de8dade07705b46c6bb482b13730a01b77a200c75f27f8150a88c
-rwxr-xr-x | kiss | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -679,17 +679,17 @@ pkg_install() { # This is repeated multiple times. Better to make it a function. pkg_rsync() { - rsync --chown=root:root -HKav --exclude etc -- \ + rsync --chown=root:root -WhHKa "$1" --no-compress --exclude etc -- \ "$tar_dir/$pkg_name/" "$KISS_ROOT/" } # Install the package by using 'rsync' and overwrite any existing files # (excluding '/etc/'). - pkg_rsync + pkg_rsync -v # If '/etc/' exists in the package, install it but don't overwrite. [ -d "$tar_dir/$pkg_name/etc" ] && - rsync --chown=root:root -HKav --ignore-existing \ + rsync --chown=root:root -WhHKa --no-compress --ignore-existing \ "$tar_dir/$pkg_name/etc" "$KISS_ROOT/" # Remove any leftover files if this is an upgrade. |