i'm using a version check to only remove-all on update-alternatives < 1.15 since its redundant with 1.15,
DPKG_VERSION=`update-alternatives --version |head -n1 |cut -f4 -d" "` if [ "$DPKG_VERSION" \< 1.15 ] ; then for p in $VARIANTS; do [ `update-alternatives --list "$p-flashplugin" | wc -l` = 0 ] && \ update-alternatives --remove-all "$p-flashplugin" done fi but unless theres some other errors dpkg should fail on then piping the error to stdin is obviously simpler ** Attachment added: "flashplugin-installer.prerm.tar.gz" http://launchpadlibrarian.net/29884289/flashplugin-installer.prerm.tar.gz -- flashplugin-installer prerm script fix https://bugs.launchpad.net/bugs/403829 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs