[Pkg-mono-svn-commits] [mono] 01/01: Fix cert store mover (symlinks to directories are -d)

Jo Shields directhex at moszumanska.debian.org
Wed Mar 16 12:54:43 UTC 2016


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

directhex pushed a commit to branch master
in repository mono.

commit 4725363c40d986e1b7778bf6764001bc8906f5a2
Author: Jo Shields <jo.shields at xamarin.com>
Date:   Wed Mar 16 12:53:02 2016 +0000

    Fix cert store mover (symlinks to directories are -d)
---
 debian/libmono-security4.0-cil.preinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/libmono-security4.0-cil.preinst b/debian/libmono-security4.0-cil.preinst
index 845136c..42fe00a 100644
--- a/debian/libmono-security4.0-cil.preinst
+++ b/debian/libmono-security4.0-cil.preinst
@@ -6,7 +6,7 @@ OLD_CERTDIR=/usr/share/.mono
 NEW_CERTDIR=/etc/mono/certstore
 
 if [ "$1" = "upgrade" -o "$1" = "install" ] ; then
-   if [ -d "$OLD_CERTDIR" ] ; then
+   if [ -d "$OLD_CERTDIR" -a ! -L "$OLD_CERTDIR" ] ; then
      echo "Found cert store in old location, moving to $NEW_CERTDIR"
      mkdir -p $NEW_CERTDIR/
      mv $OLD_CERTDIR/* $NEW_CERTDIR/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mono/packages/mono.git



More information about the Pkg-mono-svn-commits mailing list