aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-01-31 17:06:58 +0000
committermerakor <cem@ckyln.com>2022-01-31 17:06:58 +0000
commit7dc51aeec441ed5392ce56ff415ebc59f0fe3ea5 (patch)
tree18fe30ee0e7fd1470d681ae540eda77c5c5089d5
parent51a0ff5d04184a12a216a7d0b3bf05fab63890d0 (diff)
downloadcpt-7dc51aeec441ed5392ce56ff415ebc59f0fe3ea5.tar.gz
pkg_tar(): read package version from the built package directory
instead of using pkg_find() FossilOrigin-Name: 66363caaceb1691769982a134b3188efd538e08b2f6693c973b412fcb91fa4c5
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 96471c0..57c8e05 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -1063,7 +1063,7 @@ pkg_tar() {
log "$1" "Creating tarball"
# Read the version information to name the package.
- read -r version release < "$(pkg_find "$1")/version"
+ read -r version release < "$pkg_dir/$1/$pkg_db/$1/version"
# Create a tarball from the contents of the built package.
cd "$pkg_dir/$1"