diff mbox series

[meta-python] python3-gpiod: don't hardcode the project version in recipe

Message ID 20230411131609.401957-1-brgl@bgdev.pl
State Under Review
Headers show
Series [meta-python] python3-gpiod: don't hardcode the project version in recipe | expand

Commit Message

Bartosz Golaszewski April 11, 2023, 1:16 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Use the provided PV variable when referring to project's version.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 meta-python/recipes-devtools/python/python3-gpiod_2.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb b/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb
index 18cf8ae8b..93b7b935c 100644
--- a/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb
+++ b/meta-python/recipes-devtools/python/python3-gpiod_2.0.bb
@@ -13,7 +13,7 @@  require recipes-support/libgpiod/libgpiod-src.inc
 SRC_URI += "file://run-ptest"
 
 SRC_URI[sha256sum] = "f74cbf82038b3cb98ebeb25bce55ee2553be28194002d2a9889b9268cce2dd07"
-S = "${WORKDIR}/libgpiod-2.0/bindings/python"
+S = "${WORKDIR}/libgpiod-${PV}/bindings/python"
 
 inherit setuptools3 ptest