[debian-edu-commits] debian-edu/ 05/05: debian/educlient.postinst: Correctly detect Debian testing/unstable.

Mike Gabriel sunweaver at debian.org
Fri Oct 9 04:04:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch multi-distro-support
in repository educlient.

commit 503f675e2530aca7d61d318c109379774be63e95
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Oct 9 06:02:36 2015 +0200

    debian/educlient.postinst: Correctly detect Debian testing/unstable.
---
 debian/educlient.postinst | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/educlient.postinst b/debian/educlient.postinst
index 7263d40..867c2c2 100755
--- a/debian/educlient.postinst
+++ b/debian/educlient.postinst
@@ -31,8 +31,12 @@ fi
 
 # vanilla Debian does not ship /etc/lsb-release...
 if [ "$NAME" = "Debian GNU/Linux" ]; then
-    DISTRIB_ID=Debian
-    DISTRIB_RELEASE=$VERSION_ID
+	DISTRIB_ID=Debian
+	if [ -n "${VERSION_ID}" ]; then
+		DISTRIB_RELEASE=${VERSION_ID}
+	else
+		DISTRIB_RELEASE="unstable"
+	fi
 fi
 
 # Divert configuration files

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/educlient.git



More information about the debian-edu-commits mailing list