[freemat] 02/02: Move old config file without triggering a dpkg question
Graham Inggs
ginggs at moszumanska.debian.org
Sat Oct 8 14:06:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
ginggs pushed a commit to branch master
in repository freemat.
commit 2c9e44721ede5acf0d2a0e6b739e0bfa228b26c1
Author: Graham Inggs <ginggs at debian.org>
Date: Sat Oct 8 16:04:46 2016 +0200
Move old config file without triggering a dpkg question
---
debian/changelog | 3 +++
debian/freemat.postinst | 4 ++--
debian/freemat.preinst | 4 ++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b602cf6..0e4b391 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ freemat (4.2+dfsg1-3) UNRELEASED; urgency=medium
* Team upload
* Rename 'FreeMat v4.0.conf' to 'FreeMat v4.2.conf'
+ * Move '/etc/xdg/FreeMat/FreeMat v4.0.conf' to
+ '/etc/xdg/FreeMat/FreeMat v4.2.conf' without triggering a dpkg
+ question
-- Graham Inggs <ginggs at debian.org> Sat, 08 Oct 2016 15:51:14 +0200
diff --git a/debian/freemat.postinst b/debian/freemat.postinst
index 47101e7..3b34077 100644
--- a/debian/freemat.postinst
+++ b/debian/freemat.postinst
@@ -15,8 +15,8 @@ mv_conffile() {
case "$1" in
configure)
- if dpkg --compare-versions "$2" le "4.0-1"; then
- mv_conffile "/etc/xdg/FreeMat/FreeMat.conf" "/etc/xdg/FreeMat/FreeMat v4.0.conf"
+ if dpkg --compare-versions "$2" le "4.2+dfsg1-3"; then
+ mv_conffile "/etc/xdg/FreeMat/FreeMat v4.0.conf" "/etc/xdg/FreeMat/FreeMat v4.2.conf"
fi
esac
diff --git a/debian/freemat.preinst b/debian/freemat.preinst
index 811a597..e8da963 100644
--- a/debian/freemat.preinst
+++ b/debian/freemat.preinst
@@ -19,8 +19,8 @@ prep_mv_conffile() {
case "$1" in
install|upgrade)
- if dpkg --compare-versions "$2" le "4.0-1"; then
- prep_mv_conffile freemat "/etc/xdg/FreeMat/FreeMat.conf"
+ if dpkg --compare-versions "$2" le "4.2+dfsg1-3"; then
+ prep_mv_conffile freemat "/etc/xdg/FreeMat/FreeMat\ v4.0.conf"
fi
esac
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/freemat.git
More information about the debian-science-commits
mailing list