summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-06-16 10:38:30 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-06-16 10:38:30 +0000
commit9c0af8210541492901bd072417f4561d6fade96b (patch)
tree23d83db91051c8400bd1b4a1f2baed82fdd2142f /usr.sbin
parentdb79a86f935d09d0da51c73d79a0ec2830667191 (diff)
locator object owns a state object, no need to pass it as param
also better method name
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCheck.pm6
1 files changed, 3 insertions, 3 deletions
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 <espie@openbsd.org>
#
@@ -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)