[debian-edu-commits] debian-edu/ 01/01: Add version number to /etc/debian-edu/config if it is missing. Fixing problem caused by bug introduced in version 1.810 and fixed in version 1.813.
Petter Reinholdtsen
pere at moszumanska.debian.org
Sun Oct 19 13:11:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
pere pushed a commit to branch master
in repository debian-edu-install.
commit af655f38b13126ab1b59a2187c28dfcd89c49134
Author: Petter Reinholdtsen <pere at hungry.com>
Date: Sun Oct 19 15:11:21 2014 +0200
Add version number to /etc/debian-edu/config if it is missing. Fixing problem caused by bug introduced in version 1.810 and fixed in version 1.813.
---
debian/changelog | 7 ++++++-
debian/debian-edu-install.postinst | 7 +++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index e3ce717..84921f6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,7 +4,12 @@ debian-edu-install (1.813) UNRELEASED; urgency=low
* Install /usr/lib/debian-edu-install/version in the debian-edu-profile-udeb
too.
- -- Petter Reinholdtsen <pere at debian.org> Thu, 16 Oct 2014 14:37:51 +0200
+ [ Petter Reinholdtsen ]
+ * Add version number to /etc/debian-edu/config if it is missing.
+ Fixing problem caused by bug introduced in version 1.810 and fixed
+ in version 1.813.
+
+ -- Petter Reinholdtsen <pere at debian.org> Thu, 16 Oct 2014 14:37:51 +0200
debian-edu-install (1.812) unstable; urgency=low
diff --git a/debian/debian-edu-install.postinst b/debian/debian-edu-install.postinst
index 5a1e37d..52f9b16 100644
--- a/debian/debian-edu-install.postinst
+++ b/debian/debian-edu-install.postinst
@@ -129,6 +129,13 @@ if [ -f $debian_edu_config ] ; then
VERSION=""
. $debian_edu_config
+ # clean up missing version caused by bug introduced in version
+ # 1.810 and fixed in version 1.813.
+ if [ -z "$VERSION" ] ; then
+ sed -i $debian_edu_config -e \
+ "s/^VERSION=.*$/VERSION=\"$new_version\"/"
+ fi
+
# Need to list versions with space here, to avoid unwanted
# word splitting
for i in $oldversions '3.0r0 terra' '3.0r1 terra' '4.0r0 luna alpha1' \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-install.git
More information about the debian-edu-commits
mailing list