File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -305,14 +305,15 @@ def _parse_version(original_version):
305
305
r"^gcc(?P<MAJOR>\d+)_(?P<MINOR>\d+)_(?P<PATCH>\d+)-esp-(?P<EXTRA>.+)$" ,
306
306
r"^esp-(?P<EXTRA>.+)-(?P<MAJOR>\d+)\.(?P<MINOR>\d+)\.?(?P<PATCH>\d+)$" ,
307
307
r"^esp-(?P<MAJOR>\d+)\.(?P<MINOR>\d+)\.(?P<PATCH>\d+)(_(?P<EXTRA>.+))?$" ,
308
+ r"^idf-release_v(?P<MAJOR>\d+)\.(?P<MINOR>\d+)(.(?P<PATCH>\d+))?(-(?P<EXTRA>.+))?$" ,
308
309
)
309
310
for pattern in version_patterns :
310
311
match = re .search (pattern , original_version )
311
312
if match :
312
313
result = "%s.%s.%s" % (
313
314
match .group ("MAJOR" ),
314
315
match .group ("MINOR" ),
315
- match .group ("PATCH" ),
316
+ match .group ("PATCH" ) if match . group ( "PATCH" ) is not None else "0" ,
316
317
)
317
318
if match .group ("EXTRA" ):
318
319
result = result + "+%s" % match .group ("EXTRA" )
You can’t perform that action at this time.
0 commit comments