From: espie Date: Mon, 26 Jul 2010 23:27:28 +0000 (+0000) Subject: typo in message X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=afa12d8147f4794b32e1e64f9ff444c086af1a9e;p=openbsd typo in message --- diff --git a/usr.sbin/pkg_add/OpenBSD/State.pm b/usr.sbin/pkg_add/OpenBSD/State.pm index a0fa40164d0..2413f81d1c7 100644 --- a/usr.sbin/pkg_add/OpenBSD/State.pm +++ b/usr.sbin/pkg_add/OpenBSD/State.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: State.pm,v 1.15 2010/07/12 09:31:52 espie Exp $ +# $OpenBSD: State.pm,v 1.16 2010/07/26 23:27:28 espie Exp $ # # Copyright (c) 2007-2010 Marc Espie # @@ -87,7 +87,7 @@ sub istrue { my ($self, $k) = @_; my $v = $self->value($k); - if (defined $v && $v =~ /^(?:1|yes|y|on|true|t)$/) { + if (defined $v && $v =~ /^yes$/i) { return 1; } else { return 0; @@ -431,7 +431,7 @@ sub unlink my $r = unlink @_; if ($r != @_) { $self->say("rm #1 failed: removed only #2 targets, #3", - join(' ', @_), $r, $1); + join(' ', @_), $r, $!); } elsif ($verbose) { $self->say("rm #1", join(' ', @_)); }