diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-12-27 18:45:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-12-27 18:45:14 +0000 |
commit | d7a47acf55ead03e7600ae07bc67e2fd3b6f45f7 (patch) | |
tree | a6529111ff518e77cff00af9580d97dbcea19287 /app-misc/ca-certificates | |
parent | Added python_mod_optimize to postinstall phase (diff) | |
download | gentoo-2-d7a47acf55ead03e7600ae07bc67e2fd3b6f45f7.tar.gz gentoo-2-d7a47acf55ead03e7600ae07bc67e2fd3b6f45f7.tar.bz2 gentoo-2-d7a47acf55ead03e7600ae07bc67e2fd3b6f45f7.zip |
Run update-ca-certificates before searching for broken links #252618 by Toralf Förster.
(Portage version: 2.2_rc18/cvs/Linux 2.6.28 x86_64)
Diffstat (limited to 'app-misc/ca-certificates')
-rw-r--r-- | app-misc/ca-certificates/ca-certificates-20080809.ebuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/app-misc/ca-certificates/ca-certificates-20080809.ebuild b/app-misc/ca-certificates/ca-certificates-20080809.ebuild index d1d8ebeb455d..bfb7a9239d7b 100644 --- a/app-misc/ca-certificates/ca-certificates-20080809.ebuild +++ b/app-misc/ca-certificates/ca-certificates-20080809.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20080809.ebuild,v 1.7 2008/12/27 13:49:24 gmsoft Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20080809.ebuild,v 1.8 2008/12/27 18:45:14 vapier Exp $ inherit eutils @@ -53,6 +53,12 @@ src_install() { } pkg_postinst() { + if [[ ${ROOT} == "/" ]] ; then + # However it's too overzealous when the user has custom certs in place. + # --fresh is to clean up dangling symlinks + update-ca-certificates + fi + local badcerts=0 for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do ewarn "Broken symlink for a certificate at $c" @@ -64,9 +70,4 @@ pkg_postinst() { ewarn "To batch-remove them, run:" ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +" fi - - [[ ${ROOT} != "/" ]] && return 0 - # However it's too overzealous when the user has custom certs in place. - # --fresh is to clean up dangling symlinks - update-ca-certificates } |