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