fixed: pre_startup - restart if script is executed

fixed: normalize cnr versions via StrictVersion
- 2.5 and 2.5.0 were regarded as different version
This commit is contained in:
Dr.Lt.Data
2025-02-15 17:21:45 +09:00
parent 12351bada7
commit abc26cf906
4 changed files with 35 additions and 4 deletions

View File

@@ -173,7 +173,10 @@ def read_cnr_info(fullpath):
project = data.get('project', {})
name = project.get('name').strip().lower()
version = project.get('version')
# normalize version
# for example: 2.5 -> 2.5.0
version = str(manager_util.StrictVersion(project.get('version')))
urls = project.get('urls', {})
repository = urls.get('Repository')