Merge branch 'develop' into feature/pygui-multi-canvas
This commit is contained in:
commit
4363a20ffb
1 changed files with 2 additions and 1 deletions
3
tasks.py
3
tasks.py
|
@ -100,6 +100,7 @@ class OsInfo:
|
|||
if not os_like:
|
||||
like = " ".join(like)
|
||||
print(f"unsupported os install type({like})")
|
||||
print("trying using the -i option to specify an install type")
|
||||
sys.exit(1)
|
||||
if version:
|
||||
try:
|
||||
|
@ -141,7 +142,7 @@ def get_os(install_type: Optional[str]) -> OsInfo:
|
|||
key, value = line.split("=")
|
||||
d[key] = value.strip("\"")
|
||||
name_value = d["ID"]
|
||||
like_value = d["ID_LIKE"]
|
||||
like_value = d.get("ID_LIKE", "")
|
||||
version_value = d["VERSION_ID"]
|
||||
return OsInfo.get(name_value, like_value.split(), version_value)
|
||||
|
||||
|
|
Loading…
Reference in a new issue