1 --- ca-certificates-20140223/sbin/update-ca-certificates 2014-03-14 14:42:21.171246343 +0200
2 +++ ca-certificates-20140223/sbin/update-ca-certificates 2014-03-14 14:46:50.556014888 +0200
6 CERTSCONF=$DESTDIR/etc/ca-certificates.conf
7 +CERTSCONFD=$DESTDIR/etc/ca-certificates.d
8 CERTSDIR=$DESTDIR/usr/share/ca-certificates
9 LOCALCERTSDIR=$DESTDIR/etc/certs
10 CERTBUNDLE=$DESTDIR/etc/certs/ca-certificates.crt
13 echo -n "Updating certificates in $ETCCERTSDIR... "
15 -# Handle certificates that should be removed. This is an explicit act
16 -# by prefixing lines in the configuration files with exclamation marks (!).
17 -sed -n -e '/^$/d' -e 's/^!//p' $CERTSCONF | while read crt
19 - remove "$CERTSDIR/$crt"
21 +for conf in $CERTSCONF $CERTSCONFD/*.conf; do
22 + # skip inexistent files (matched by glob)
23 + [ -f $conf ] || continue
25 + # Handle certificates that should be removed. This is an explicit act
26 + # by prefixing lines in the configuration files with exclamation marks (!).
27 + sed -n -e '/^$/d' -e 's/^!//p' $conf | while read crt
29 + remove "$CERTSDIR/$crt"
32 -sed -e '/^$/d' -e '/^#/d' -e '/^!/d' $CERTSCONF | while read crt
34 - if test -f "$CERTSDIR/$crt"
36 - add "$CERTSDIR/$crt"
37 - elif test -f "$LOCALCERTSDIR/$crt"
39 - add "$LOCALCERTSDIR/$crt"
41 - echo "W: $CERTSDIR/$crt or $LOCALCERTSDIR/$crt not found, but listed in $CERTSCONF." >&2
44 + sed -e '/^$/d' -e '/^#/d' -e '/^!/d' $conf | while read crt
46 + if test -f "$CERTSDIR/$crt"
48 + add "$CERTSDIR/$crt"
49 + elif test -f "$LOCALCERTSDIR/$crt"
51 + add "$LOCALCERTSDIR/$crt"
53 + echo "W: $CERTSDIR/$crt or $LOCALCERTSDIR/$crt not found, but listed in $conf." >&2