From 5b728e887dfe46a9a9b8580c97c5e9e5803e259a Mon Sep 17 00:00:00 2001 From: espie Date: Wed, 20 Apr 2022 09:19:52 +0000 Subject: [PATCH] zap branch info so that pre-caching works with stuff like autoconf%2.64 --- usr.sbin/pkg_add/OpenBSD/PackageRepository/Cache.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Cache.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Cache.pm index 2680110a4f8..1031e3cfa0c 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Cache.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Cache.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Cache.pm,v 1.2 2022/04/19 12:51:32 espie Exp $ +# $OpenBSD: Cache.pm,v 1.3 2022/04/20 09:19:52 espie Exp $ # # Copyright (c) 2022 Marc Espie # @@ -69,6 +69,7 @@ sub prime_update_info_cache my $stem = OpenBSD::PackageName::splitstem($name); next if $stem =~ m/^\.libs\d*\-/; next if $stem =~ m/^partial\-/; + $stem =~ s/\%.*//; # zap branch info $self->{stems}{$stem} = 1; } } -- 2.20.1