diff options
-rw-r--r-- | meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb index eda73db6a4..9315240190 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb | |||
@@ -34,13 +34,13 @@ do_install() { | |||
34 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then | 34 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'true', 'false', d)}; then |
35 | rm -f "${D}${bindir}/update-alternatives" | 35 | rm -f "${D}${bindir}/update-alternatives" |
36 | fi | 36 | fi |
37 | |||
38 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then | ||
39 | grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm | ||
40 | fi | ||
41 | } | 37 | } |
42 | 38 | ||
43 | do_install_append_class-target() { | 39 | do_install_append_class-target() { |
40 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'python', 'true', 'false', d)}; then | ||
41 | grep -lZ "/usr/bin/env.*python" ${D}${bindir}/* | xargs -0 rm | ||
42 | fi | ||
43 | |||
44 | if [ -e "${D}${bindir}/update-alternatives" ]; then | 44 | if [ -e "${D}${bindir}/update-alternatives" ]; then |
45 | sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g' | 45 | sed -i ${D}${bindir}/update-alternatives -e 's,/usr/bin,${bindir},g; s,/usr/lib,${nonarch_libdir},g' |
46 | fi | 46 | fi |