summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-05-17 15:45:37 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-05-17 15:45:37 +0000
commit9ce21a5b2dedc4d34ed391934415c721c25d5635 (patch)
tree0fd22652007325c4abeaadeb42b9528734d3b74b /usr.sbin/pkg_add/OpenBSD
parent58e1adb4bfbbe396bcc9ca277427d12d1036e0e5 (diff)
actually fix caching for release/stable
$r2 computation was wrong, led to an undef, which autovivification promptly masked
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm
index ee7dd0028f6..09af353ed95 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Installed.pm,v 1.44 2022/05/08 13:21:04 espie Exp $
+# $OpenBSD: Installed.pm,v 1.45 2023/05/17 15:45:36 espie Exp $
#
# Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org>
#
@@ -75,7 +75,7 @@ sub setup_cache
# with the corresponding release
if (defined $repo->{release}) {
my $url = $repo->urlscheme."://$repo->{host}$repo->{release}";
- my $r2 = $repo->parse_url(\$url, $state);
+ my $r2 = OpenBSD::PackageRepository->parse(\$url, $state);
$r2->{info_cache} = $repo->{info_cache};
}
}