cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 7f4de8254182e8332b2557020d6c48d1c87460c1
parent e820cf6c8ce2cd825af37f422d6394e029b2187c
Author: Cliford Sab <25724815+clifordsab@users.noreply.github.com>
Date:   Sun, 26 Apr 2020 10:38:16 +0800

kiss: Use suggested primary

Diffstat:
Mkiss | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kiss b/kiss @@ -871,7 +871,7 @@ pkg_install_files() { install -o root -g root -m "$rwx" \ -d "$KISS_ROOT/$line" ;; *) test "$1" "$KISS_ROOT/$line" || - if [ -L "$2/$line" ]; then + if [ -h "$2/$line" ]; then [ -d "$KISS_ROOT/$line" ] && continue cp -fPp "$2/$line" "${line%/*}" @@ -1021,7 +1021,7 @@ pkg_install() { [ -z "$KISS_FORCE" ] && log "$pkg_name" "Checking package manifest" && while read -r line; do # Skip symbolic links - [ -L "$tar_dir/$pkg_name/$line" ] && continue + [ -h "$tar_dir/$pkg_name/$line" ] && continue [ -e "$tar_dir/$pkg_name/$line" ] || { log "File $line missing from tarball but mentioned in manifest" "" "!>" TARBALL_FAIL=1 @@ -1081,11 +1081,11 @@ pkg_install() { rm -f "$file" # Remove file symlinks. - elif [ -L "$file" ] && [ ! -d "$file" ]; then + elif [ -h "$file" ] && [ ! -d "$file" ]; then unlink "$file" ||: # Skip directory symlinks. - elif [ -L "$file" ] && [ -d "$file" ]; then : + elif [ -h "$file" ] && [ -d "$file" ]; then : # Remove directories if empty. elif [ -d "$file" ]; then