Skip to contentSkip to conversation

opkg-utils: use D instead of OPKG_OFFLINE_ROOT in postrm

PATCH New André Draszik 1 participant 1 message Jan 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opkg-utils: use D instead of OPKG_OFFLINE_ROOT in postrm

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.

---
 meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb +2 -2
index 4f90bcd13a..f6265959e9 100644
@@ -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"
Signature · 1 line
2.11.0