[debian-edu-commits] debian-edu/ 29/30: Remove symlinks before restoring originally diverted file.

Mike Gabriel sunweaver at debian.org
Fri Oct 9 03:44:07 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 0a23da8c1a1195165d1046fcade7e7806d7bcc78
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Aug 25 23:57:44 2015 +0200

    Remove symlinks before restoring originally diverted file.
---
 debian/educlient.postinst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/educlient.postinst b/debian/educlient.postinst
index 7833e4d..eb0a191 100755
--- a/debian/educlient.postinst
+++ b/debian/educlient.postinst
@@ -72,6 +72,7 @@ for working_dir in ${ETC_DISTRIB_VERSION} ${ETC_DISTRIB_COMMON}  ${ETC_COMMON};
 
 				# remove previously made diversions
 				if [ "$(dpkg-divert --listpackage /etc/$i)" = "educlient" ] && [ -h /etc/$i ]; then
+					rm -f /etc/$i
 					dpkg-divert --package educlient --rename --remove /etc/$i
 				fi
 

-- 
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