Skip to content

Commit 0efcfbf

Browse files
committed
sanity_checks: accept dash in packages' version strings
Projects may use dashs ('-') in their version strings (for example, taocpp-json use "-beta.N" for years) but it prevents accepting such projecs in the wrapdb database. As the string is splitted with rsplit(1), such version strings should not cause a problem.
1 parent 9ed2264 commit 0efcfbf

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 = v.rsplit('-', 1)
259259
with self.subTest(step='valid release name'):
260-
self.assertTrue(re.fullmatch('[a-z0-9._]+', ver))
260+
self.assertTrue(re.fullmatch('[a-z0-9._-]+', 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)