]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libpam: remove redundant PTEST_ENABLED conditional
authorRoss Burton <ross.burton@arm.com>
Mon, 12 Feb 2024 17:44:56 +0000 (17:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Feb 2024 13:51:38 +0000 (13:51 +0000)
do_install_ptest is only called if ptest is enabled, so don't guard it
again.

Signed-off-by: Ross Burton <ross.burton@arm.com>
meta/recipes-extended/pam/libpam_1.5.3.bb

index 809d927f55b960096beb2562d4cdc19b32b7aefb..4dd98906064d83fa859192e37471b0cc1d88387a 100644 (file)
@@ -163,11 +163,9 @@ do_install() {
 }
 
 do_install_ptest() {
-    if [ ${PTEST_ENABLED} = "1" ]; then
-        mkdir -p ${D}${PTEST_PATH}/tests
-        install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests
-        install -m 0644 ${S}/tests/confdir ${D}${PTEST_PATH}/tests
-    fi
+    mkdir -p ${D}${PTEST_PATH}/tests
+    install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests
+    install -m 0644 ${S}/tests/confdir ${D}${PTEST_PATH}/tests
 }
 
 pkg_postinst:${PN}() {