summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageLocator.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
index a31de391d85..e13f179888b 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageLocator.pm,v 1.25 2005/09/13 10:25:33 espie Exp $
+# $OpenBSD: PackageLocator.pm,v 1.26 2005/09/13 10:44:06 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -563,7 +563,7 @@ sub add
}
}
-sub find
+sub openPackage
{
my ($self, $pkgname, $arch) = @_;
@@ -574,7 +574,7 @@ sub find
return undef;
}
-sub available
+sub list
{
my $self = shift;
@@ -637,7 +637,7 @@ sub find
$pkgpath->add($repository);
}
} else {
- $package = $pkgpath->find($_, $arch);
+ $package = $pkgpath->openPackage($_, $arch);
}
$packages{$_} = $package if defined($package);
return $package;
@@ -645,7 +645,7 @@ sub find
sub available
{
- return $pkgpath->available();
+ return $pkgpath->list();
}
1;