cpt

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

commit 1ba960c8a90153f1b426ff9417d46b1bd9162901
parent fa07e560e28f7f1c4c33533a96eb4fa92508f6b8
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 15 Apr 2020 12:56:04 +0300

kiss: respect KISS_ROOT values in fixdeps

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

diff --git a/kiss b/kiss @@ -436,13 +436,13 @@ pkg_fixdeps() { dep=$(readlink -f "$dep") # Figure out which package owns the file. - own=$("$grep" -lFx "${dep##$KISS_ROOT}" "$@") + own=$("$grep" -lFx "${dep#$KISS_ROOT}" "$@") # If the package wasn't found, retry by removing # the '/usr' prefix. - if [ -z "$own" ] && [ -z "${dep%%/usr*}" ]; then + if [ -z "$own" ] && [ -z "${dep##$KISS_ROOT/usr*}" ]; then + own=$("$grep" -lFx "${dep#$KISS_ROOT/usr}" "$@") dep=${dep#/usr} - own=$("$grep" -lFx "${dep##$KISS_ROOT}" "$@") fi # Extract package name from 'grep' match.