[Bug 403829] Re: flashplugin-installer prerm script fix
Dinxter
dinxter at hotmail.co.uk
Tue Aug 4 09:30:52 UTC 2009
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 Mozilla
Bugs, which is subscribed to flashplugin-nonfree in ubuntu.
More information about the Ubuntu-mozillateam-bugs
mailing list