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 @@ -321,14 +321,15 @@ def _parse_version(original_version):
321
321
r"^gcc(?P<MAJOR>\d+)_(?P<MINOR>\d+)_(?P<PATCH>\d+)-esp-(?P<EXTRA>.+)$" ,
322
322
r"^esp-(?P<EXTRA>.+)-(?P<MAJOR>\d+)\.(?P<MINOR>\d+)\.?(?P<PATCH>\d+)$" ,
323
323
r"^esp-(?P<MAJOR>\d+)\.(?P<MINOR>\d+)\.(?P<PATCH>\d+)(_(?P<EXTRA>.+))?$" ,
324
+ r"^idf-release_v(?P<MAJOR>\d+)\.(?P<MINOR>\d+)(.(?P<PATCH>\d+))?(-(?P<EXTRA>.+))?$" ,
324
325
)
325
326
for pattern in version_patterns :
326
327
match = re .search (pattern , original_version )
327
328
if match :
328
329
result = "%s.%s.%s" % (
329
330
match .group ("MAJOR" ),
330
331
match .group ("MINOR" ),
331
- match .group ("PATCH" ),
332
+ match .group ("PATCH" ) if match . group ( "PATCH" ) is not None else "0" ,
332
333
)
333
334
if match .group ("EXTRA" ):
334
335
result = result + "+%s" % match .group ("EXTRA" )
You can’t perform that action at this time.
0 commit comments