From 30d6e3722aca64b187f89d206bb5c66d8bb1c9bb Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 9 Sep 2020 15:05:58 +0000 Subject: pkg_isbuilt(): simplify FossilOrigin-Name: 49bcf5c3b49b75c33e22e575d4c74c2c240a1ff611468081d0af0f08099c04a0 --- src/cpt-lib | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cpt-lib b/src/cpt-lib index 38e57c1..27f252b 100644 --- a/src/cpt-lib +++ b/src/cpt-lib @@ -390,8 +390,7 @@ sh256() { pkg_isbuilt() ( # Check if a package is built or not. - repo_dir=$(pkg_find "$1") - read -r ver rel < "$repo_dir/version" + read -r ver rel < "$(pkg_find "$1")/version" set +f for tarball in "$bin_dir/$1#$ver-$rel.tar."*; do -- cgit v1.2.3