Followup-For: Bug #656222 Control: tag -1 patch Hi,
attached is a patch that fixes the alternatives handling: * preinst upgrade: do not remove the alternative -> preserve customization * prerm remove: remove the alternative Andreas
diffstat for uzbl_0.0.0~git.20120514-1 uzbl_0.0.0~git.20120514-1.1 debian/prerm | 8 ++++++++ uzbl-0.0.0~git.20120514/debian/changelog | 8 ++++++++ uzbl-0.0.0~git.20120514/debian/preinst | 4 ---- 3 files changed, 16 insertions(+), 4 deletions(-) diff -u uzbl-0.0.0~git.20120514/debian/changelog uzbl-0.0.0~git.20120514/debian/changelog --- uzbl-0.0.0~git.20120514/debian/changelog +++ uzbl-0.0.0~git.20120514/debian/changelog @@ -1,3 +1,11 @@ +uzbl (0.0.0~git.20120514-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Preserve x-www-browser alternative on upgrades. + * Remove x-www-browser alternative on uninstallation. (Closes: #656222) + + -- Andreas Beckmann <[email protected]> Wed, 16 Jan 2013 01:13:27 +0100 + uzbl (0.0.0~git.20120514-1) unstable; urgency=low * New upstream version diff -u uzbl-0.0.0~git.20120514/debian/preinst uzbl-0.0.0~git.20120514/debian/preinst --- uzbl-0.0.0~git.20120514/debian/preinst +++ uzbl-0.0.0~git.20120514/debian/preinst @@ -5,10 +5,6 @@ rm -rf /usr/share/doc/uzbl/examples fi -if [ "$1" = upgrade ]; then - update-alternatives --remove x-www-browser /usr/bin/uzbl-browser -fi - # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. only in patch2: unchanged: --- uzbl-0.0.0~git.20120514.orig/debian/prerm +++ uzbl-0.0.0~git.20120514/debian/prerm @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +if [ "$1" = "remove" ]; then + update-alternatives --remove x-www-browser /usr/bin/uzbl-browser +fi + +#DEBHELPER#

