diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-10-21 21:06:20 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-10-21 21:06:20 +0000 |
commit | 1a9c9a637b46e3d38d63bdece9871c04a886b522 (patch) | |
tree | f45df3a87db3588ba6a5594e2b8d76cf5232ea0e /usr.sbin/pkg_add/OpenBSD | |
parent | f045bd5b7001e8aca052aa1d368fa0fe55c0c302 (diff) |
ouch, this one requires local for now
(as found out by Chris Cappuccio)
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Error.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Error.pm b/usr.sbin/pkg_add/OpenBSD/Error.pm index 1dd0ffb8ec4..b232c77de20 100644 --- a/usr.sbin/pkg_add/OpenBSD/Error.pm +++ b/usr.sbin/pkg_add/OpenBSD/Error.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Error.pm,v 1.15 2008/10/20 10:25:16 espie Exp $ +# $OpenBSD: Error.pm,v 1.16 2008/10/21 21:06:19 espie Exp $ # # Copyright (c) 2004 Marc Espie <espie@openbsd.org> # @@ -240,7 +240,7 @@ sub dienow my ($error, $handler) = @_; if ($error) { if ($error =~ m/^(Expected:\s+)?(.*?)(?:\s+at\s+(.*)\s+line\s+(\d+)\.?)?$/o) { - my $_ = $2; + local $_ = $2; $FileName = $3; $Line = $4; $FullMessage = $error; |