python-scapy: Remove redundant sed operations

-Remove redundant sed operations.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Zang Ruochen
2019-06-10 15:24:22 +08:00
committed by Armin Kuster
parent 376d34368e
commit b1e379ee5c

View File

@@ -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,@PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest