Allow dashes in Wine release candidate versions

Wine-tkg builds don't seem to have the dash, winehq-devel builds do.
This commit is contained in:
Robbert van der Helm
2022-12-23 20:09:45 +01:00
parent 399db4d2fc
commit d640732799
+1 -1
View File
@@ -151,7 +151,7 @@ endif
#
# https://bugs.winehq.org/show_bug.cgi?id=49138
wine_version = run_command(
'sh', '-c', '''wine --version | grep --only-matching -E '[0-9]+\.[0-9]+(rc[0-9]+)?' | head -n1''',
'sh', '-c', '''wine --version | grep --only-matching -E '[0-9]+\.[0-9]+(-?rc[0-9]+)?' | head -n1''',
check : false
)
if wine_version.returncode() == 0