summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_mklocatedb
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-05-23 09:52:56 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-05-23 09:52:56 +0000
commit85c6c584339258f827ec6c8c8cb5d2f4b6a30d35 (patch)
treec90dca31808a49218776a716fed0ed0f101a425c /usr.sbin/pkg_add/pkg_mklocatedb
parentc0158744197e07296f0c9edea32273877cb68811 (diff)
also record expanded @exec-like actions and @newauth...
Diffstat (limited to 'usr.sbin/pkg_add/pkg_mklocatedb')
-rw-r--r--usr.sbin/pkg_add/pkg_mklocatedb18
1 files changed, 16 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_mklocatedb b/usr.sbin/pkg_add/pkg_mklocatedb
index f2088d3f8c4..d4effecb241 100644
--- a/usr.sbin/pkg_add/pkg_mklocatedb
+++ b/usr.sbin/pkg_add/pkg_mklocatedb
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# Copyright (c) 2005-2010 Marc Espie <espie@openbsd.org>
-# $OpenBSD: pkg_mklocatedb,v 1.35 2012/05/18 12:13:37 espie Exp $
+# $OpenBSD: pkg_mklocatedb,v 1.36 2012/05/23 09:52:55 espie Exp $
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@@ -81,6 +81,21 @@ sub print_name
print {$state->{out}} $state->{currentheader}, $self->fullname, "\n";
}
+package OpenBSD::PackingElement::Action;
+sub print_name
+{
+ my ($self, $state) = @_;
+ print {$state->{out}} $state->{currentheader}, "\@".
+ $self->keyword, " ", $self->{expanded}, "\n";
+}
+
+package OpenBSD::PackingElement::NewAuth;
+sub print_name
+{
+ my ($self, $state) = @_;
+ print {$state->{out}} $state->{currentheader}, $self->fullstring, "\n";
+}
+
package OpenBSD::PackingElement::DirBase;
sub print_name
{
@@ -207,7 +222,6 @@ sub do_portsdir
my $_;
while (<$fh>) {
return if m/^\=\=\=\> /o;
- next unless m/^\@(?:bin|cwd|name|info|man|file|lib|shell|comment\s+subdir\=)\b/o || !m/^\@/o;
&$cont($_);
}
$done = 1;