summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-12 22:50:32 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-12 22:50:32 +0000
commit5a4645e8b48cbb966421686105048808e99e1e2c (patch)
tree61025f64a31b46a07a8d90c17908c6006c155143 /usr.sbin
parent6c2e11e5fa07e05af826c13a9a2f80f5a6f6ce97 (diff)
oops. forgot this one. Noticed by M.Pereboom.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Replace.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm
index 49e016cde1d..cfffe49942a 100644
--- a/usr.sbin/pkg_add/OpenBSD/Replace.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Replace.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Replace.pm,v 1.9 2007/05/07 09:32:51 espie Exp $
+# $OpenBSD: Replace.pm,v 1.10 2007/05/12 22:50:31 espie Exp $
#
# Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org>
#
@@ -159,9 +159,9 @@ sub check_replacement_spec
my ($self, $state, $wanting, $toreplace, $replacement) = @_;
# nothing to validate if old dependency doesn't concern us.
- return unless OpenBSD::PkgSpec::match($self->{pattern}, $toreplace);
+ return unless $self->spec->match($toreplace);
# nothing to do if new dependency just matches
- return if OpenBSD::PkgSpec::match($self->{pattern}, $replacement);
+ return if $self->spec->match($replacement);
if ($state->{forced}->{updatedepends}) {
Warn "Forward dependency of $wanting on $toreplace doesn't match $replacement, forcing it\n";