diff mbox series

[1/2] gettext: Drop obsolete ptest conditional in do_install

Message ID 20240903140945.625408-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 6037ad74d88ff23821120422f2f0d0366daa8ec7
Headers show
Series [1/2] gettext: Drop obsolete ptest conditional in do_install | expand

Commit Message

Richard Purdie Sept. 3, 2024, 2:09 p.m. UTC
The PTEST_ENABLED conditional is no longer needed since the task is deleted
if ptest isn't enabled.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-core/gettext/gettext_0.22.5.bb | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/gettext/gettext_0.22.5.bb b/meta/recipes-core/gettext/gettext_0.22.5.bb
index ef5272a2065..0bf2a56e5fc 100644
--- a/meta/recipes-core/gettext/gettext_0.22.5.bb
+++ b/meta/recipes-core/gettext/gettext_0.22.5.bb
@@ -145,7 +145,6 @@  do_compile_ptest() {
 }
 
 do_install_ptest() {
-    if [ ${PTEST_ENABLED} = "1" ]; then
         mkdir -p                                        ${D}${PTEST_PATH}/tests
         mkdir -p                                        ${D}${PTEST_PATH}/src
         mkdir -p                                        ${D}${PTEST_PATH}/po
@@ -178,7 +177,6 @@  do_install_ptest() {
         chmod 0755 ${D}${PTEST_PATH}/tests/lang-vala ${D}${PTEST_PATH}/tests/plural-1 ${D}${PTEST_PATH}/tests/xgettext-tcl-4 \
                    ${D}${PTEST_PATH}/tests/xgettext-vala-1  ${D}${PTEST_PATH}/tests/xgettext-po-2 ${D}${PTEST_PATH}/tests/xgettext-vala-6
         sed -i -e 's|${DEBUG_PREFIX_MAP}||g' ${D}${PTEST_PATH}/tests/init-env
-    fi
 }
 
 RDEPENDS:${PN}-ptest += "make xz bash gawk autoconf locale-base-de-de locale-base-fr-fr"