[wolf4sdl] 01/01: Only remove the alternative for /usr/games/wolf4sdl if it exists
Simon McVittie
smcv at debian.org
Sat Mar 4 17:41:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/stretch
in repository wolf4sdl.
commit 0d16d35b138e3f57f30db38d225ce99355141f09
Author: Simon McVittie <smcv at debian.org>
Date: Sat Mar 4 17:26:16 2017 +0000
Only remove the alternative for /usr/games/wolf4sdl if it exists
This fixes the following sequence: install wolf4sdl in jessie,
remove (but do not purge) wolf4sdl, upgrade from jessie to stretch,
and install wolf4sdl again. (Closes: #856722)
---
debian/changelog | 10 ++++++++++
debian/wolf4sdl.preinst | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index f3c0dea..3828045 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+wolf4sdl (1.7+svn262+dfsg1-4) unstable; urgency=medium
+
+ * Team upload.
+ * Only remove the alternative for /usr/games/wolf4sdl if it exists.
+ This fixes the following sequence: install wolf4sdl in jessie,
+ remove (but do not purge) wolf4sdl, upgrade from jessie to stretch,
+ and install wolf4sdl again. (Closes: #856722)
+
+ -- Simon McVittie <smcv at debian.org> Sat, 04 Mar 2017 17:25:10 +0000
+
wolf4sdl (1.7+svn262+dfsg1-3) unstable; urgency=low
* Enable parallel builds (Closes: #724522).
diff --git a/debian/wolf4sdl.preinst b/debian/wolf4sdl.preinst
index 6db6216..44387f3 100644
--- a/debian/wolf4sdl.preinst
+++ b/debian/wolf4sdl.preinst
@@ -3,7 +3,8 @@ set -e
if [ "$1" = "install" ] || [ "$1" = "upgrade" ]
then
- if dpkg --compare-versions "$2" lt-nl "1.7+svn262+dfsg1-3~"
+ if dpkg --compare-versions "$2" lt-nl "1.7+svn262+dfsg1-3~" && \
+ [ -L /etc/alternatives/wolf4sdl ]
then
update-alternatives --quiet --remove-all wolf4sdl
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/wolf4sdl.git
More information about the Pkg-games-commits
mailing list