From: espie Date: Sun, 21 Nov 2021 10:15:52 +0000 (+0000) Subject: temporarily reallow "empty" flavor parts so that rsync-- works again X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d5381c5ad15372a5f0ee5f868d773698f3e6fca9;p=openbsd temporarily reallow "empty" flavor parts so that rsync-- works again (I really need to split that code off) --- diff --git a/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm b/usr.sbin/pkg_add/OpenBSD/PkgSpec.pm index 42a17cadc4a..20ed30f61b1 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.49 2021/11/17 10:59:13 espie Exp $ +# $OpenBSD: PkgSpec.pm,v 1.50 2021/11/21 10:15:52 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie # @@ -203,7 +203,7 @@ sub parse (?:\>|\>\=|\<\=|\<|\=)?\d[^-%]* # optional op + version |\* # or any version ) - (?:\-([^%]+))? # optional flavor part + (?:\-([^%]*))? # optional flavor part $/x) { return undef; }