From 35eae466d69f619d3e2c8f931dcb74225d817b5f Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 11 Jan 2021 14:23:44 +0000 Subject: cpt-cat: fix using alternate root directories FossilOrigin-Name: a3feee4df8569e69b9b3581078ac9771e18f10af48476f16ae1cf798f07440f5 --- contrib/cpt-cat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/cpt-cat b/contrib/cpt-cat index be0ab56..b8dc34b 100755 --- 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 -- cgit v1.2.3