[Pkg-mono-svn-commits] [mono] 01/06: Fix edge case in new certdir migration code (Closes: #820082)

Jo Shields directhex at moszumanska.debian.org
Mon Apr 11 20:24:43 UTC 2016


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

directhex pushed a commit to annotated tag debian/4.2.1.102+dfsg2-7
in repository mono.

commit 2e9629f5d4f091523d22e80b169425bd2636fc34
Author: Jo Shields <jo.shields at xamarin.com>
Date:   Mon Apr 11 16:54:51 2016 +0100

    Fix edge case in new certdir migration code (Closes: #820082)
    
    (cherry picked from commit 19065f03672e037c87264999999653e51fd9e9b9)
---
 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 42fe00a..d704eb6 100644
--- a/debian/libmono-security4.0-cil.preinst
+++ b/debian/libmono-security4.0-cil.preinst
@@ -9,7 +9,7 @@ if [ "$1" = "upgrade" -o "$1" = "install" ] ; 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/
+     if [ `ls -A $OLD_CERTDIR/` ]; then mv $OLD_CERTDIR/* $NEW_CERTDIR/; fi
      rm -fr $OLD_CERTDIR/
    fi
 fi

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