summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepository/Cache.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Cache.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Cache.pm
index 1031e3cfa0c..e1a937c88db 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.3 2022/04/20 09:19:52 espie Exp $
+# $OpenBSD: Cache.pm,v 1.4 2022/04/20 09:24:07 espie Exp $
#
# Copyright (c) 2022 Marc Espie <espie@openbsd.org>
#
@@ -70,6 +70,7 @@ sub prime_update_info_cache
next if $stem =~ m/^\.libs\d*\-/;
next if $stem =~ m/^partial\-/;
$stem =~ s/\%.*//; # zap branch info
+ $stem =~ s/\-\-.*//; # and set flavors
$self->{stems}{$stem} = 1;
}
}