The rename was being done correctly in do_install (for just pn-gzip)
so remove a bad attempted rename in the postinst and suffix that and
prerm with pn-gzip while we're in here.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
SECTION = "console/utils"
PRIORITY = "required"
LICENSE = "GPL"
-PR = "1"
+PR = "r2"
SRC_URI = "${GNU_MIRROR}/gzip/gzip-${PV}.tar.gz"
SRC_URI[md5sum] = "e381b8506210c794278f5527cba0e765"
done
}
-pkg_prerm_${PN} () {
+pkg_prerm_pn-gzip () {
for alternative in ${alternatives}; do
mv ${D}${base_bindir}/$alternative ${D}${base_bindir}/$alternative.${PN}
update-alternatives --remove $alternative $alternative.${PN}
done
}
-pkg_postinst_${PN} () {
+pkg_postinst_pn-gzip () {
for alternative in ${alternatives}; do
- mv ${D}${base_bindir}/$alternative ${D}${base_bindir}/$alternative.${PN}
update-alternatives --install ${base_bindir}/$alternative $alternative $alternative.${PN} 100
done
}