[yocto] [meta-security][master][warrior][PATCH 1/3] python-scapy: Remove redundant sed operations

Zang Ruochen zangrc.fnst at cn.fujitsu.com
Mon Jun 10 00:24:22 PDT 2019


-Remove redundant sed operations.

Signed-off-by: Zang Ruochen <zangrc.fnst at cn.fujitsu.com>
---
 recipes-security/scapy/python-scapy.inc | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/recipes-security/scapy/python-scapy.inc b/recipes-security/scapy/python-scapy.inc
index 99f30a7..baa69b2 100644
--- a/recipes-security/scapy/python-scapy.inc
+++ b/recipes-security/scapy/python-scapy.inc
@@ -12,13 +12,6 @@ SRC_URI = "git://github.com/secdev/scapy.git"
 
 inherit ptest
 
-do_install_append() {
-    if [ "${PYTHON_PN}" = "python3" ]; then
-        sed -i -e 's/python/python3/' ${D}${bindir}/scapy
-        sed -i -e 's/python/python3/' ${D}${bindir}/UTscapy
-    fi
-}
-
 do_install_ptest() {
     install -m 0644 ${S}/test/regression.uts ${D}${PTEST_PATH}
     sed -i 's, at PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest
-- 
2.20.1





More information about the yocto mailing list