From 7dc51aeec441ed5392ce56ff415ebc59f0fe3ea5 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 31 Jan 2022 17:06:58 +0000 Subject: pkg_tar(): read package version from the built package directory instead of using pkg_find() FossilOrigin-Name: 66363caaceb1691769982a134b3188efd538e08b2f6693c973b412fcb91fa4c5 --- src/cpt-lib.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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" -- cgit v1.2.3