aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-09-09 15:05:58 +0000
committermerakor <cem@ckyln.com>2020-09-09 15:05:58 +0000
commit30d6e3722aca64b187f89d206bb5c66d8bb1c9bb (patch)
treeac6b8ff1d5dd5085fbb52e265bedc04581bc60e1 /src
parentc4e6afcc4487ce3107eb5c6a3624082104b676b6 (diff)
downloadcpt-30d6e3722aca64b187f89d206bb5c66d8bb1c9bb.tar.gz
pkg_isbuilt(): simplify
FossilOrigin-Name: 49bcf5c3b49b75c33e22e575d4c74c2c240a1ff611468081d0af0f08099c04a0
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib3
1 files changed, 1 insertions, 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