util-linux-ng: add missing `update-alternatives --remove' in pkg_prerm
authorEric Bénard <eric@eukrea.com>
Mon, 13 Sep 2010 10:22:06 +0000 (12:22 +0200)
committerEric Bénard <eric@eukrea.com>
Mon, 13 Sep 2010 10:40:14 +0000 (12:40 +0200)
* util-linux-ng installs alternative of hexdump, setsid and chrt in postinst, but
doesn't remove them in prerm leading to broken simlinks

* this patch closes bug 5476
http://bugs.openembedded.org/show_bug.cgi?id=5476

From: Korey Lu <koreylu@gmail.com>
Signed-off-by: Eric Bénard <eric@eukrea.com>
recipes/util-linux-ng/util-linux-ng.inc

index 577ba50..35502f3 100644 (file)
@@ -230,7 +230,7 @@ pkg_prerm_${PN} () {
        test -x ${base_sbindir}/pivot_root.${PN} && \
        update-alternatives --remove pivot_root pivot_root.${PN}
 
-       for i in dmesg kill more halt hwclock mkswap reboot shutdown sln mkfs.minix fsck.minix hecdump last logger mesg renice wall vipw vigr chfn newgrp chsh login reset; do
+       for i in dmesg kill more halt hwclock mkswap reboot shutdown sln mkfs.minix fsck.minix hexdump setsid chrt last logger mesg renice wall vipw vigr chfn newgrp chsh login reset; do
                update-alternatives --remove $i $i.${PN}
        done
 }