mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
opkg-utils: clear update-alternatives database on uninstall
When uninstalling update-alternatives, it doesn't seem to make much sense to keep the update-alternatives database around. In particular when removing packaging data, e.g. due to read-only rootfs, update-alternatives is removed from the target file system. Leaving its database around serves no purpose in that case as there is no way to use it afterwards anyway. This frees close to 700KB of (uncompressed) space in a busybox based environment. (From OE-Core rev: b24a63d71b517af701dfedbc7f7b541d25af708f) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
39fba4d70f
commit
5deddc8767
@@ -43,4 +43,9 @@ RPROVIDES_update-alternatives-opkg = "update-alternatives update-alternatives-cw
|
||||
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 --ignore-fail-on-non-empty $OPKG_OFFLINE_ROOT${nonarch_libdir}/opkg
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
Reference in New Issue
Block a user