cpt

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

commit 0a7d30269150f09994c41a772c63439c5153a257
parent 49d382ce9f0693ee8f74165e9efbb8bb292c6434
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 22 Apr 2020 12:30:23 +0300

kiss: skip symbolic links during manifest checking

Diffstat:
Mkiss | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/kiss b/kiss @@ -984,7 +984,10 @@ pkg_install() { # Ensure that the tarball's manifest is correct by checking that # each file and directory inside of it actually exists. [ -z "$KISS_FORCE" ] && log "$pkg_name" "Checking package manifest" && - while read -r line; do [ -e "$tar_dir/$pkg_name/$line" ] || { + while read -r line; do + # Skip symbolic links + [ -L "$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 }