diff options
author | 2012-05-01 10:18:13 +0000 | |
---|---|---|
committer | 2012-05-01 10:18:13 +0000 | |
commit | a29aa82c4714c56c6fa2479242d5f40146177eae (patch) | |
tree | d6eaa4a97936391b193fcac7052aa581ead6d963 | |
parent | update currency exchange rates; (diff) | |
download | wireguard-openbsd-a29aa82c4714c56c6fa2479242d5f40146177eae.tar.xz wireguard-openbsd-a29aa82c4714c56c6fa2479242d5f40146177eae.zip |
properly pass extra parameters from State->new to init.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm | 4 | ||||
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/State.pm | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm b/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm index 1c7470a5e9a..2443aa0f71d 100644 --- a/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm +++ b/usr.sbin/pkg_add/OpenBSD/AddCreateDelete.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: AddCreateDelete.pm,v 1.15 2011/03/19 10:30:02 espie Exp $ +# $OpenBSD: AddCreateDelete.pm,v 1.16 2012/05/01 10:18:13 espie Exp $ # # Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org> # @@ -33,7 +33,7 @@ sub init $self->{progressmeter} = OpenBSD::ProgressMeter->new; $self->{bad} = 0; - $self->SUPER::init; + $self->SUPER::init(@_); $self->{export_level}++; } diff --git a/usr.sbin/pkg_add/OpenBSD/State.pm b/usr.sbin/pkg_add/OpenBSD/State.pm index 18bb492876c..8084c2abe5d 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.22 2012/04/10 16:57:12 espie Exp $ +# $OpenBSD: State.pm,v 1.23 2012/05/01 10:18:13 espie Exp $ # # Copyright (c) 2007-2010 Marc Espie <espie@openbsd.org> # @@ -161,7 +161,8 @@ our @EXPORT = (); sub new { - my ($class, $cmd) = @_; + my $class = shift; + my $cmd = shift; my $o = bless {cmd => $cmd}, $class; $o->init(@_); return $o; |