aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-22 07:23:42 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-22 07:23:42 +0000
commite8ad0aa06352ff02d0576cd8379c5c142a0d30dc (patch)
tree8829038e91c1e305179da7114358165dd144c99b
parent23c72df04dff42284afee7e7fc996f1c75e159b9 (diff)
downloadcpt-e8ad0aa06352ff02d0576cd8379c5c142a0d30dc.tar.gz
kiss: Fix broken installation.
FossilOrigin-Name: ca264c1dc840b82e16ad5ac000a37c67866693c8b8fc85f65db2787b4120bb4c
-rwxr-xr-xkiss6
1 files changed, 3 insertions, 3 deletions
diff --git a/kiss b/kiss
index 8fca6f3..3c103ef 100755
--- a/kiss
+++ b/kiss
@@ -695,18 +695,18 @@ pkg_install() {
# Install the package by using 'rsync' and overwrite any existing files
# (excluding '/etc/').
- rsync -Kav --exclude etc -- "$tar_dir/" "$KISS_ROOT/"
+ rsync -HKav --exclude etc -- "$tar_dir/" "$KISS_ROOT/"
# If '/etc/' exists in the package, install it but don't overwrite.
[ -d "$tar_dir/etc" ] &&
- rsync -Kav --ignore-existing "$tar_dir/etc" "$KISS_ROOT/"
+ rsync -HKav --ignore-existing "$tar_dir/etc" "$KISS_ROOT/"
# Remove any leftover files if this is an upgrade.
[ -f "$cac_dir/m-$pkg_name" ] &&
awk 'NR==FNR{lines[$0];next}!($0 in lines)' \
"$KISS_ROOT/$pkg_db/$pkg_name/manifest" "$cac_dir/m-$pkg_name" |
while read -r file; do
- rm -f "$KISS_ROOT/$file"
+ [ -f "$KISS_ROOT/$file" ] && rm -f "$KISS_ROOT/$file"
done
# Reset 'trap' to its original value. Installation is done so