From cdb55384310fc2cb046a25e2bfc05c9b847b8453 Mon Sep 17 00:00:00 2001
From: Thibaut ROMAIN <thibaut.romain@cs-soprasteria.com>
Date: Wed, 16 Oct 2024 16:57:41 +0200
Subject: [PATCH] ENH: fix a typo in post_install that could lead to a problem
 with downloading gdal bindings

---
 Packaging/Files/post_install.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Packaging/Files/post_install.sh.in b/Packaging/Files/post_install.sh.in
index 0dbb9f34ff..92bbf8f43a 100644
--- a/Packaging/Files/post_install.sh.in
+++ b/Packaging/Files/post_install.sh.in
@@ -45,7 +45,7 @@ python_distpackage_path="$OTB_INSTALL_DIR"/lib/python3/dist-packages/osgeo/
 gdal_python_found="$(find $python_distpackage_path -name "*$pyversion-x86_64-linux*")"
 if [ "$pyversion" = "312" ] && [ -z $gdal_python_found ]; then
     echo "***** Python 3.12 detected, downloading gdal bindings compiled for python 3.12 *****"
-    HTTP_STATUS=$(curl -s -o "$OTB_INSTALL_DIR"/tools/py312.tar.gz -w "%{response_code}\n" https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-$OTB_SHORT_VERSION-GDAL-bindings-py$pyversion.tar.gz)
+    HTTP_STATUS=$(curl -s -o "$OTB_INSTALL_DIR"/tools/gdal-py312.tar.gz -w "%{response_code}\n" https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-$OTB_SHORT_VERSION-GDAL-bindings-py$pyversion.tar.gz)
     if [ $HTTP_STATUS -eq 200 ]; then
         tar -xf "$OTB_INSTALL_DIR"/tools/gdal-py312.tar.gz -C $python_distpackage_path
         rm "$OTB_INSTALL_DIR"/tools/gdal-py312.tar.gz
-- 
GitLab