[SCM] mplayer-blue/master: Clean the dangling link when upgrading from wheezy.
micove-guest at users.alioth.debian.org
micove-guest at users.alioth.debian.org
Thu Jul 16 18:15:56 UTC 2015
The following commit has been merged in the master branch:
commit 2f94f089708dfc61f8b0aed4fde2ba8c8a4fe8b6
Author: Miguel A. Colón Vélez <debian.micove at gmail.com>
Date: Thu Jul 16 13:53:33 2015 -0400
Clean the dangling link when upgrading from wheezy.
u-a autoresolves the issue but just make sure and don't rely on u-a.
diff --git a/debian/prerm b/debian/preinst
similarity index 54%
copy from debian/prerm
copy to debian/preinst
index 6d84c24..b237401 100644
--- a/debian/prerm
+++ b/debian/preinst
@@ -2,8 +2,9 @@
set -e
-if [ "$1" != "upgrade" ]; then
- update-alternatives --remove mplayer-skin /usr/share/mplayer/skins/Blue
+
+if [ "$1" = "upgrade" ] && [ -d /usr/share/mplayer/skins/blue ]; then
+ update-alternatives --remove mplayer-skin /usr/share/mplayer/skins/blue
fi
#DEBHELPER#
--
mplayer-blue packaging
More information about the pkg-multimedia-commits
mailing list