public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger (vapier)" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/ca-certificates: ca-certificates-20080809.ebuild
Date: Sat, 27 Dec 2008 18:45:15 +0000	[thread overview]
Message-ID: <E1LGe9z-0005ll-2P@stork.gentoo.org> (raw)

vapier      08/12/27 18:45:15

  Modified:             ca-certificates-20080809.ebuild
  Log:
  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)

Revision  Changes    Path
1.8                  app-misc/ca-certificates/ca-certificates-20080809.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ca-certificates/ca-certificates-20080809.ebuild?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ca-certificates/ca-certificates-20080809.ebuild?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/ca-certificates/ca-certificates-20080809.ebuild?r1=1.7&r2=1.8

Index: ca-certificates-20080809.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20080809.ebuild,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ca-certificates-20080809.ebuild	27 Dec 2008 13:49:24 -0000	1.7
+++ ca-certificates-20080809.ebuild	27 Dec 2008 18:45:14 -0000	1.8
@@ -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 @@
 }
 
 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 @@
 		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
 }






             reply	other threads:[~2008-12-27 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-27 18:45 Mike Frysinger (vapier) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-02-08 19:37 [gentoo-commits] gentoo-x86 commit in app-misc/ca-certificates: ca-certificates-20080809.ebuild Mike Frysinger (vapier)
2008-10-26  3:48 Mike Frysinger (vapier)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LGe9z-0005ll-2P@stork.gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox