diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-30 10:36:08 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-30 10:36:08 +0000 |
commit | 070facfeab089348bed90fec6499e501f76d8721 (patch) | |
tree | e39e007d3e9a6b30c016c97cb54ce90ab35f4418 /usr.sbin/pkg_add | |
parent | 4409563d2bef22b074108211225b1a6c080c1566 (diff) |
access locator through new API
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Update.pm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm index 3a29572226e..03c5b339231 100644 --- a/usr.sbin/pkg_add/OpenBSD/Update.pm +++ b/usr.sbin/pkg_add/OpenBSD/Update.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Update.pm,v 1.138 2010/06/09 08:13:19 espie Exp $ +# $OpenBSD: Update.pm,v 1.139 2010/06/30 10:36:07 espie Exp $ # # Copyright (c) 2004-2010 Marc Espie <espie@openbsd.org> # @@ -107,9 +107,8 @@ sub process_handle } # if (defined $plist->{url}) { -# require OpenBSD::PackageLocator; # my $repo; -# ($repo, undef) = OpenBSD::PackageLocator->path_parse($plist->{url}->name); +# ($repo, undef) = $state->repo->path_parse($plist->{url}->name); # $set->add_repositories($repo); # } my @search = (); @@ -262,9 +261,8 @@ sub process_hint2 my $pkgname = $hint->pkgname; if (OpenBSD::PackageName::is_stem($pkgname)) { if ($pkgname =~ m/[\/\:]/o) { - require OpenBSD::PackageLocator; my $repo; - ($repo, $pkgname) = OpenBSD::PackageLocator->path_parse($pkgname); + ($repo, $pkgname) = $state->repo->path_parse($pkgname); $set->add_repositories($repo); }; my $l = $state->updater->stem2location($set, $pkgname, $state, |