Skip to content

Commit 56fbd77

Browse files
committed
sanity_checks: fix validity check of upstream versions
upstream versions with underscores break the way wrap files are handled: this character is the delimiter used to extract the wrap's name and version from different sources: * `meson wrap` when retrieving patch files; * sanity_checks.py when retrieving git tags.
1 parent 3c6c531 commit 56fbd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/sanity_checks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_releases(self):
257257
t = f'{name}_{v}'
258258
ver, rev = split_version_revision(v)
259259
with self.subTest(step='valid release version'):
260-
self.assertTrue(re.fullmatch('[a-z0-9._]+', ver))
260+
self.assertTrue(re.fullmatch('[^_]+', ver))
261261
self.assertTrue(re.fullmatch('[0-9]+', rev))
262262
if i == 0:
263263
with self.subTest(step='check_source_url'):

0 commit comments

Comments
 (0)