[debian-edu-commits] debian-edu/ 01/03: postinst: only try to remove asound.conf if it exists.

Holger Levsen holger at layer-acht.org
Sat Oct 7 15:26:42 UTC 2017


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

holger pushed a commit to branch master
in repository debian-edu-config.

commit dfdd78c4c70a1b6f26b2bac2b3a788baaaf7f0fc
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Oct 7 17:09:11 2017 +0200

    postinst: only try to remove asound.conf if it exists.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 debian/changelog                  | 6 ++++++
 debian/debian-edu-config.postinst | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 33c4601..1eadc95 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+debian-edu-config (1.935) UNRELEASED; urgency=medium
+
+  * postinst: only try to remove asound.conf if it exists.
+
+ -- Holger Levsen <holger at debian.org>  Sat, 07 Oct 2017 17:08:35 +0200
+
 debian-edu-config (1.934) unstable; urgency=medium
 
   [ Wolfgang Schweer ]
diff --git a/debian/debian-edu-config.postinst b/debian/debian-edu-config.postinst
index 7a97aae..23ede1e 100644
--- a/debian/debian-edu-config.postinst
+++ b/debian/debian-edu-config.postinst
@@ -127,7 +127,7 @@ fi
 
 case "$1" in
 configure)
-    if dpkg --compare-versions "$2" le "1.933" ; then
+    if dpkg --compare-versions "$2" le "1.933" && [ -f /etc/asound.conf ] ; then
 	rm /etc/asound.conf
     fi
 

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



More information about the debian-edu-commits mailing list