Commit e46b2ca70f56ea91fb792d238d65c705182deb09

Thomas de Grivel 2023-01-24T09:31:39

fix package

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/shpkg.subr b/lib/shpkg.subr
index 83d5970..14d0003 100644
--- a/lib/shpkg.subr
+++ b/lib/shpkg.subr
@@ -228,11 +228,13 @@ shpkg_package () {
         SHPKG_REPO_VERSION="$(shpkg_version "${REPO}")"
         SHPKG_REPO_PACKAGE="${SHPKG_PACKAGE_DIR}/${SHPKG_REPO_DIR}-${SHPKG_REPO_VERSION}.tgz"
 	if ! [ -f "${SHPKG_REPO_PACKAGE}" ]; then
-            SHPKG_REPO_PACKAGE_DIR="$(dirname "${SHPKG_REPO_PACKAGE}")"
             SHPKG_REPO_FAKE_DIR="$(shpkg_fake_dir "${REPO}")"
 	    verbose shpkg_fake "${REPO}"
-            if ! [ -d "${SHPKG_REPO_PACKAGE}_DIR" ]; then
-		verbose mkdir -p "${SHPKG_REPO_PACKAGE}_DIR"
+            SHPKG_REPO_VERSION="$(shpkg_version "${REPO}")"
+            SHPKG_REPO_PACKAGE="${SHPKG_PACKAGE_DIR}/${SHPKG_REPO_DIR}-${SHPKG_REPO_VERSION}.tgz"
+            SHPKG_REPO_PACKAGE_DIR="$(dirname "${SHPKG_REPO_PACKAGE}")"
+            if ! [ -d "${SHPKG_REPO_PACKAGE_DIR}" ]; then
+		verbose mkdir -p "${SHPKG_REPO_PACKAGE_DIR}"
             fi
             if ! [ -d "${SHPKG_REPO_FAKE_DIR}" ]; then
 		verbose mkdir -p "${SHPKG_REPO_FAKE_DIR}"