cpt

Carbs Packaging Tools
git clone git://git.carbslinux.org/cpt
Log | Files | Refs | README | LICENSE

commit 1fe8fdab13951fd87a2d413298346fc6cecdf984
parent 757d256b5100143f50d58585e19383d423bb5381
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 11 Jan 2021 17:23:44 +0300

cpt-cat: fix using alternate root directories

Diffstat:
Mcontrib/cpt-cat | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/cpt-cat b/contrib/cpt-cat @@ -17,7 +17,7 @@ cpt-list "$pkg" >/dev/null [ "$1" ] || set -- build depends sources version for file; do - [ -f "/var/db/cpt/installed/$pkg/$file" ] || continue + [ -f "$CPT_ROOT/var/db/cpt/installed/$pkg/$file" ] || continue printf '\033[1m%s:\033[m\n' "$file" >&2 - cat "/var/db/cpt/installed/$pkg/$file" + cat "$CPT_ROOT/var/db/cpt/installed/$pkg/$file" done