Commit 32b8cb6e8a783800870a5c1b9ce3d10d730317d1

Thomas de Grivel 2023-01-24T09:33:10

fix package

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/shpkg.subr b/lib/shpkg.subr
index 14d0003..c0687f5 100644
--- a/lib/shpkg.subr
+++ b/lib/shpkg.subr
@@ -276,6 +276,8 @@ shpkg_install () {
 	    ( verbose shpkg_install_dependencies "${REPO}"; )
 	    ( verbose shpkg_build "${REPO}"; )
 	    ( verbose shpkg_package "${REPO}"; )
+            SHPKG_REPO_VERSION="$(shpkg_version "${REPO}")"
+            SHPKG_REPO_PACKAGE="${SHPKG_PACKAGE_DIR}/${SHPKG_REPO_DIR}-${SHPKG_REPO_VERSION}.tgz"
             ( verbose cd "${SHPKG_DIR}" &&
 		  echo "pax -rdz < ${SHPKG_REPO_PACKAGE}" &&
 		  pax -rdz < "${SHPKG_REPO_PACKAGE}"; )