summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingList.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2004-11-18 21:46:08 +0000
committerMarc Espie <espie@cvs.openbsd.org>2004-11-18 21:46:08 +0000
commit570bfe13cae5ebfbf5ee9fcfaa6a737cddb85735 (patch)
treec9b86135b793ff878048c589ff6fb5d2147a99cb /usr.sbin/pkg_add/OpenBSD/PackingList.pm
parent5202f3110eef90c0443d32c4807f9295dd358661 (diff)
add @wantlib and @depend keyword
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingList.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackingList.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
index 0a0a59ff1a3..000abf5b9ff 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackingList.pm,v 1.40 2004/11/15 15:06:22 espie Exp $
+# $OpenBSD: PackingList.pm,v 1.41 2004/11/18 21:46:07 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -132,7 +132,7 @@ sub DependOnly
# XXX optimization
if (m/^\@arch\b/o) {
while (<$fh>) {
- if (m/^\@(?:pkgdep|newdepend|libdepend)\b/o) {
+ if (m/^\@(?:depend|wantlib|pkgdep|newdepend|libdepend)\b/o) {
&$cont($_);
} elsif (m/^\@(?:groups|users|cwd)\b/o) {
last;
@@ -140,7 +140,7 @@ sub DependOnly
}
return;
}
- next unless m/^\@(?:pkgdep|newdepend|libdepend)\b/o;
+ next unless m/^\@(?:depend|wantlib|pkgdep|newdepend|libdepend)\b/o;
&$cont($_);
}
}
@@ -169,7 +169,7 @@ sub ConflictOnly
while (<$fh>) {
if (m/^\@(?:pkgcfl|conflict|option|name)\b/o) {
&$cont($_);
- } elsif (m/^\@(?:pkgdep|newdepend|libdepend|groups|users|cwd)\b/o) {
+ } elsif (m/^\@(?:depend|wantlib|pkgdep|newdepend|libdepend|groups|users|cwd)\b/o) {
last;
}
}
@@ -313,7 +313,7 @@ sub visit
$self->{$special}->$method(@l) if defined $self->{$special};
}
- for my $listname (qw(modules pkgcfl conflict pkgdep newdepend libdepend groups users items)) {
+ for my $listname (qw(modules pkgcfl conflict depend wantlib pkgdep newdepend libdepend groups users items)) {
if (defined $self->{$listname}) {
for my $item (@{$self->{$listname}}) {
$item->$method(@l);