From: André Draszik <[email protected]>

While both result in the same in this case, postrm
should really be referring to $D as we do everywhere
else.

Signed-off-by: André Draszik <[email protected]>
---
 meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb 
b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 4f90bcd13a..f6265959e9 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -45,8 +45,8 @@ RREPLACES_update-alternatives-opkg = 
"update-alternatives-cworth"
 RCONFLICTS_update-alternatives-opkg = "update-alternatives-cworth"
 
 pkg_postrm_update-alternatives-opkg() {
-       rm -rf $OPKG_OFFLINE_ROOT${nonarch_libdir}/opkg/alternatives
-       rmdir $OPKG_OFFLINE_ROOT${nonarch_libdir}/opkg || true
+       rm -rf $D${nonarch_libdir}/opkg/alternatives
+       rmdir $D${nonarch_libdir}/opkg || true
 }
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to