cpt

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

commit 5604ab3f6ba0645dad3215b1c98c2ce2684498b7
parent 68cf91a9d225299769d2156c39d95af75c05e68d
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Wed, 31 Jul 2019 17:57:14 +0300

kiss: Make owns follow symlinks.

Diffstat:
Mkiss | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kiss b/kiss @@ -960,12 +960,12 @@ args() { for file; do # Strip 'KISS_ROOT' from the file path if passed and # follow symlinks. - file=$(realpath "$KISS_ROOT/${file##$KISS_ROOT}") + file_true=$(readlink -f "$KISS_ROOT/${file##$KISS_ROOT}") - [ -f "$file" ] || die "File '$file' doesn't exist." + [ -f "$file_true" ] || die "File '$file' doesn't exist." set +f - pkg_owns=$(grep -lFx "${file##$KISS_ROOT}" \ + pkg_owns=$(grep -lFx "${file_true##$KISS_ROOT}" \ "$KISS_ROOT/$pkg_db/"*/manifest) set -f