diff mbox series

[meta-selinux,v2] libselinux-python: fix do_install line continuation and variable typo

Message ID 20260420052535.4066745-1-rong.fu.cn@windriver.com
State New
Headers show
Series [meta-selinux,v2] libselinux-python: fix do_install line continuation and variable typo | expand

Commit Message

Rong Fu April 20, 2026, 5:25 a.m. UTC
Add missing line continuation backslash after PREFIX=${prefix} in do_install().
Fix variable name typo: rename 'dicect_url_json' to 'direct_url_json'.

Signed-off-by: Rong Fu <rong.fu.cn@windriver.com>
---
 recipes-security/selinux/libselinux-python_3.10.bb | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/recipes-security/selinux/libselinux-python_3.10.bb b/recipes-security/selinux/libselinux-python_3.10.bb
index 5777dee..98296e1 100644
--- a/recipes-security/selinux/libselinux-python_3.10.bb
+++ b/recipes-security/selinux/libselinux-python_3.10.bb
@@ -48,18 +48,18 @@  do_install() {
     oe_runmake install-pywrap \
         PIP_NO_BUILD_ISOLATION=0 \
         DESTDIR=${D} \
-        PREFIX=${prefix}
+        PREFIX=${prefix} \
         PYLIBVER='python${PYTHON_BASEVERSION}' \
         PYTHONLIBDIR='${PYTHON_SITEPACKAGES_DIR}'
 
-    dicect_url_json="${D}${PYTHON_SITEPACKAGES_DIR}/selinux-${PV}.dist-info/direct_url.json"
-    oldhash=$(nativepython3 -c "from pip._internal.operations.install.wheel import rehash; hash,len = rehash('$dicect_url_json'); print(f'{hash},{len}')")
+    direct_url_json="${D}${PYTHON_SITEPACKAGES_DIR}/selinux-${PV}.dist-info/direct_url.json"
+    oldhash=$(nativepython3 -c "from pip._internal.operations.install.wheel import rehash; hash,len = rehash('$direct_url_json'); print(f'{hash},{len}')")
 
     # Fix buildpaths issue
     sed -i -e 's,${WORKDIR},,g' \
-        $dicect_url_json
+        $direct_url_json
 
-    newhash=$(nativepython3 -c "from pip._internal.operations.install.wheel import rehash; hash,len = rehash('$dicect_url_json'); print(f'{hash},{len}')")
+    newhash=$(nativepython3 -c "from pip._internal.operations.install.wheel import rehash; hash,len = rehash('$direct_url_json'); print(f'{hash},{len}')")
 
     # Update hash of direct_url.json in RECORD after build path was removed
     sed -i -e "s/$oldhash/$newhash/g" \