diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-10-11 13:29:06 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-10-11 13:29:06 +0000 |
commit | 2cc9ba7c0def09e8aaead5c57e152a6ccc852c19 (patch) | |
tree | 1d172adede13176768a94a00da550f75ef3082e9 /usr.sbin/pkg_add/OpenBSD/PackingElement.pm | |
parent | 9b7b12904f5b8227132d59903f79006335b6306a (diff) |
move mandir handling to pkg_add/delete time, solely.
Adjust stuff so that pkg_add can run makewhatis just once.
pkg_delete cannot, since it has to have the manpages around still
to remove them...
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingElement.pm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingElement.pm b/usr.sbin/pkg_add/OpenBSD/PackingElement.pm index 0ed55e2fdb5..af0a22a1666 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.49 2004/10/11 13:10:25 espie Exp $ +# $OpenBSD: PackingElement.pm,v 1.50 2004/10/11 13:29:05 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -78,6 +78,10 @@ sub clone } +sub register_manpage +{ +} + sub destate { } @@ -381,10 +385,9 @@ our @ISA=qw(OpenBSD::PackingElement::FileBase); __PACKAGE__->setKeyword('man'); sub keyword() { "man" } -sub destate +sub register_manpage { my ($self, $state) = @_; - $self->SUPER::destate($state); my $fname = $self->fullname(); if ($fname =~ m,^(.*/man)/(?:man|cat).*?/,) { my $d = $1; @@ -392,7 +395,7 @@ sub destate $state->{mandirs}->{$d} = [] unless defined $state->{mandirs}->{$d}; push(@{$state->{mandirs}->{$d}}, $fname); - } + } } package OpenBSD::PackingElement::Lib; |