diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-01-09 13:44:58 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-01-09 13:44:58 +0000 |
commit | 783b5f4158be44bc679dbc08652ec1502d2aea83 (patch) | |
tree | cad3669db2853c168ff103d601e31ef7c14e64f0 /usr.sbin/pkg_add | |
parent | f4adf7ad90fe735dde2faae79d3c45b9c632a04e (diff) |
kill cache, we don't really need it
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageLocator.pm | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm index 5e4f7264329..acaa289c70c 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.82 2010/01/09 12:01:57 espie Exp $ +# $OpenBSD: PackageLocator.pm,v 1.83 2010/01/09 13:44:57 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -23,10 +23,6 @@ package OpenBSD::PackageLocator; use OpenBSD::PackageRepositoryList; use OpenBSD::PackageRepository; -# this returns an archive handle from an uninstalled package name, currently -# There is a cache available. - -my %packages; my $pkgpath = OpenBSD::PackageRepositoryList->new; if (defined $ENV{PKG_PATH}) { @@ -57,9 +53,6 @@ sub find { my ($class, $_, $arch) = @_; - if (exists $packages{$_}) { - return $packages{$_}; - } my $package; if (m/[\/\:]/o) { my ($repository, undef, $pkgname) = path_parse($_); @@ -70,7 +63,6 @@ sub find } else { $package = $pkgpath->find($_, $arch); } - $packages{$_} = $package if defined($package); return $package; } |