mirror of
https://git.yoctoproject.org/meta-security
synced 2026-06-02 01:20:29 +00:00
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:
committed by
Armin Kuster
parent
7df33d377a
commit
3a02e2dd1c
@@ -12,13 +12,6 @@ SRC_URI = "git://github.com/secdev/scapy.git"
|
|||||||
|
|
||||||
inherit ptest
|
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() {
|
do_install_ptest() {
|
||||||
install -m 0644 ${S}/test/regression.uts ${D}${PTEST_PATH}
|
install -m 0644 ${S}/test/regression.uts ${D}${PTEST_PATH}
|
||||||
sed -i 's,@PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest
|
sed -i 's,@PTEST_PATH@,${PTEST_PATH},' ${D}${PTEST_PATH}/run-ptest
|
||||||
|
|||||||
Reference in New Issue
Block a user