From: André Draszik Date: Thu, 12 Jan 2017 10:42:25 +0000 (+0000) Subject: opkg-utils: use D instead of OPKG_OFFLINE_ROOT in postrm X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d0b36d9ffbc718d215ea31d9a5e5973f341f580;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git opkg-utils: use D instead of OPKG_OFFLINE_ROOT in postrm While both result in the same in this case, postrm should really be referring to $D as we do everywhere else. (From OE-Core rev: 7e459843e0371953d3d9d3ad05b019947ed7ca04) Signed-off-by: André Draszik Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb index 094f4e75de0..7b3b86e1dcd 100644 --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb @@ -46,8 +46,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"