summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2020-06-09 20:16:13 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2020-06-09 20:16:13 +0000
commit0c74f1f1f865f696c3adebb4ec4df72ab80e73ac (patch)
treef38001641d5913f7e4295716dbee892487a8cce6 /usr.sbin/pkg_add
parent0ccd52c7a7bb2d4e96ecd07a3909e106011a38e5 (diff)
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')
-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;
}
}