aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-22 09:30:23 +0000
committermerakor <cem@ckyln.com>2020-04-22 09:30:23 +0000
commit3bde88ae33aa109fc114c47b7a07f3c77188fbb0 (patch)
treeef14540f44f40efcc9d99c384ff9948f92e6a4ef /kiss
parent8188dec2db31904460f235f17bd5208aaa0765a5 (diff)
downloadcpt-3bde88ae33aa109fc114c47b7a07f3c77188fbb0.tar.gz
kiss: skip symbolic links during manifest checking
FossilOrigin-Name: 98087e4a598e10ee937c87534b2e481ca3ac095254de60592a369c2c0e1a55cd
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss5
1 files changed, 4 insertions, 1 deletions
diff --git a/kiss b/kiss
index e22fd09..bb73f12 100755
--- 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
}