[arch-commits] Commit in ca-certificates/trunk (PKGBUILD ca-certificates.install)
Pierre Schmitz
pierre at archlinux.org
Tue May 3 18:30:02 UTC 2011
Date: Tuesday, May 3, 2011 @ 14:30:02
Author: pierre
Revision: 122288
upgpkg: ca-certificates 20110421-2
reduce verbosity and suppress unimportant messages during install and update
Modified:
ca-certificates/trunk/PKGBUILD
ca-certificates/trunk/ca-certificates.install
-------------------------+
PKGBUILD | 2 +-
ca-certificates.install | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-05-03 18:25:45 UTC (rev 122287)
+++ PKGBUILD 2011-05-03 18:30:02 UTC (rev 122288)
@@ -3,7 +3,7 @@
pkgname=ca-certificates
pkgver=20110421
-pkgrel=1
+pkgrel=2
pkgdesc='Common CA certificates'
arch=('any')
url='http://packages.qa.debian.org/c/ca-certificates.html'
Modified: ca-certificates.install
===================================================================
--- ca-certificates.install 2011-05-03 18:25:45 UTC (rev 122287)
+++ ca-certificates.install 2011-05-03 18:30:02 UTC (rev 122288)
@@ -1,11 +1,14 @@
export LC_ALL=C
post_install() {
- usr/sbin/update-ca-certificates --fresh
+ usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
}
post_upgrade() {
- usr/sbin/update-ca-certificates --fresh
+ if [ $(vercmp $2 20110421-1) -lt 0 ]; then
+ echo 'Updating certificates. This might take a while...'
+ fi
+ usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
}
pre_remove() {
@@ -13,7 +16,7 @@
local _backup=$(mktemp)
mv etc/ca-certificates.conf ${_backup}
echo > etc/ca-certificates.conf
- usr/sbin/update-ca-certificates --fresh
+ usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
mv ${_backup} etc/ca-certificates.conf
}
More information about the arch-commits
mailing list