mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 14:59:55 +00:00
nmap: change shebang to python3
upstream nmap is python2 compatiable now, but this recipe supports python3. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -50,9 +50,11 @@ do_configure() {
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
if [ -f "${D}${bindir}/ndiff" ]; then
|
||||
sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/ndiff
|
||||
fi
|
||||
for f in ndiff uninstall_ndiff; do
|
||||
if [ -f ${D}${bindir}/$f ]; then
|
||||
sed -i 's@^#!.*$@#!/usr/bin/env python3@g' ${D}${bindir}/$f
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR} ${datadir}/ncat"
|
||||
|
||||
Reference in New Issue
Block a user