summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Add.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-07-24 10:49:02 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-07-24 10:49:02 +0000
commitb106570a681dfa3fb9d8bea14f3bd534ef682fde (patch)
tree6354ce1f1996e793238028025622ed1f6aee3358 /usr.sbin/pkg_add/OpenBSD/Add.pm
parente6188fd9c0e2887bb1bc812b2e49c18b5d5a717e (diff)
pass state to Makewhatis. With new hooks in there, that means display
will integrate with pkg_add output (no more disturbed error messages from wrong subject lines)
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Add.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Add.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Add.pm b/usr.sbin/pkg_add/OpenBSD/Add.pm
index c0ef2da6dd0..451c18297e2 100644
--- a/usr.sbin/pkg_add/OpenBSD/Add.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Add.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Add.pm,v 1.113 2010/06/30 10:51:04 espie Exp $
+# $OpenBSD: Add.pm,v 1.114 2010/07/24 10:49:01 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -39,7 +39,8 @@ sub manpages_index
$destdir.$k, join(@l)) if $state->verbose >= 2;
} else {
try {
- OpenBSD::Makewhatis::merge($destdir.$k, \@l);
+ OpenBSD::Makewhatis::merge($destdir.$k, \@l,
+ $state);
} catchall {
$state->errsay("Error in makewhatis: #1", $_);
};