From 1064d52924a06a491a959d21f11701699695d313 Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 16 Nov 2021 15:38:52 +0000 Subject: [PATCH] tweak the packages-specs regexp a bit: stem-* shouldn't have any cruft added. --- usr.sbin/pkg_add/OpenBSD/PkgSpec.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm b/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm index eb85b41a561..8752cf40609 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PkgSpec.pm,v 1.46 2019/10/13 16:22:30 espie Exp $ +# $OpenBSD: PkgSpec.pm,v 1.47 2021/11/16 15:38:52 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -196,7 +196,7 @@ sub parse my $r = {}; # let's try really hard to find the stem and the flavors - unless ($p =~ m/^(.*?)\-((?:(?:\>|\>\=|\<\=|\<|\=)?\d|\*)[^-]*)(.*)$/) { + unless ($p =~ m/^(.*?)\-((?:\>|\>\=|\<\=|\<|\=)?\d[^-]*|\*)(.*)$/) { return undef; } ($r->{stemspec}, $r->{vspec}, $r->{flavorspec}) = ($1, $2, $3); -- 2.20.1