X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ca-certificates-etc-certs.patch;h=2e9c4c72120204d8ce13edd9709482d92bdf22ea;hb=76b4b9b99b55b4b7eb112239fb24228aae83973e;hp=0bbdbb31fa010bbcb2551dd76a3508475261d0c8;hpb=3dc5e4eae9f7712ff80eb8da71c109e2b53efa48;p=packages%2Fca-certificates.git diff --git a/ca-certificates-etc-certs.patch b/ca-certificates-etc-certs.patch index 0bbdbb3..2e9c4c7 100644 --- a/ca-certificates-etc-certs.patch +++ b/ca-certificates-etc-certs.patch @@ -1,5 +1,5 @@ ---- ca-certificates-20120212/sbin/update-ca-certificates~ 2012-05-12 11:41:03.000000000 +0300 -+++ ca-certificates-20120212/sbin/update-ca-certificates 2012-05-12 11:43:10.517657520 +0300 +--- ca-certificates-20140223/sbin/update-ca-certificates~ 2014-03-14 12:55:24.000000000 +0200 ++++ ca-certificates-20140223/sbin/update-ca-certificates 2014-03-14 14:38:31.587876211 +0200 @@ -37,7 +37,7 @@ CERTSCONF=/etc/ca-certificates.conf @@ -37,25 +37,25 @@ if test -L "$PEM" then rm -f "$PEM" -@@ -89,6 +89,7 @@ +@@ -90,6 +90,7 @@ if [ "$fresh" = 1 ]; then do - case $(readlink $symlink) in - $CERTSDIR*) rm -f $symlink;; -+ $LOCALCERTSDIR*) rm -f $symlink;; - esac + case $(readlink "$symlink") in + $CERTSDIR*) rm -f "$symlink";; ++ $LOCALCERTSDIR*) rm -f "$symlink";; + esac done find . -type l -print | while read symlink -@@ -110,24 +110,18 @@ +@@ -111,24 +111,18 @@ sed -e '/^$/d' -e '/^#/d' -e '/^!/d' $CERTSCONF | while read crt do - if ! test -f "$CERTSDIR/$crt" + if test -f "$CERTSDIR/$crt" - then -- echo "W: $CERTSDIR/$crt not found, but listed in $CERTSCONF." >&2 ++ then + add "$CERTSDIR/$crt" + elif test -f "$LOCALCERTSDIR/$crt" -+ then + then +- echo "W: $CERTSDIR/$crt not found, but listed in $CERTSCONF." >&2 + add "$LOCALCERTSDIR/$crt" + else + echo "W: $CERTSDIR/$crt or $LOCALCERTSDIR/$crt not found, but listed in $CERTSCONF." >&2 @@ -68,7 +68,7 @@ -# administrator. -if [ -d "$LOCALCERTSDIR" ] -then -- find -L "$LOCALCERTSDIR" -type f -name '*.crt' | while read crt +- find -L "$LOCALCERTSDIR" -type f -name '*.crt' | sort | while read crt - do - add "$crt" - done