summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2020-06-09 20:16:12 +0000
committersthen <sthen@openbsd.org>2020-06-09 20:16:12 +0000
commit17fabd8f2db0b468d167ef70b8ff46e2e8549f73 (patch)
treede00c2cf36ad78fe8a0660ff21548fab065c26cc /usr.sbin/pkg_add/OpenBSD
parentRefuse to remove locked revisions with rcs -orange. (diff)
downloadwireguard-openbsd-17fabd8f2db0b468d167ef70b8ff46e2e8549f73.tar.xz
wireguard-openbsd-17fabd8f2db0b468d167ef70b8ff46e2e8549f73.zip
Show a message while pkg_add updates the font cache. This occurs at the
end of an install and can take quite a while if you have certain fonts installed. Before this change the cursor was left at an empty line. tweak/ok espie@
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingElement.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
index df4ef6fd637..09aa645a100 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.276 2020/02/20 16:40:49 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.277 2020/06/09 20:16:12 sthen Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -1740,6 +1740,7 @@ sub finish
@l = grep {-d $_} @l;
if (@l != 0) {
+ $state->print("Updating font cache: ") if $state->verbose < 2;
require OpenBSD::Error;
map { update_fontalias($state, $_) } @l;
@@ -1748,6 +1749,7 @@ sub finish
map { restore_fontdir($state, $_) } @l;
run_if_exists($state, OpenBSD::Paths->fc_cache, '--', @l);
+ $state->say("ok") if $state->verbose < 2;
}
}