From: espie Date: Fri, 16 Jun 2023 10:38:29 +0000 (+0000) Subject: locator object owns a state object, no need to pass it as param X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7068cea40265a3df44466fe47d91673c910c77d9;p=openbsd locator object owns a state object, no need to pass it as param also better method name --- diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm index b98e4c8c132..09446818875 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCheck.pm @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCheck.pm,v 1.80 2023/06/16 10:29:35 espie Exp $ +# $OpenBSD: PkgCheck.pm,v 1.81 2023/06/16 10:38:29 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -521,7 +521,7 @@ sub run_command($self) $self->{params} = []; } -sub result($self) +sub show_results($self) { while (@{$self->{params}} > 0) { $self->run_command; @@ -919,7 +919,7 @@ sub locate_unknown($self, $state) $locator->add_param($p); }); } - $locator->result($state); + $locator->show_results; } sub fill_localbase($self, $state, $base)