adder renamer for opensuse-leap

This commit is contained in:
Adolfo Gómez García 2020-08-08 00:21:27 +02:00
parent 73445c516b
commit 27f867f71a
2 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,7 @@ def getLinuxOs() -> str:
data = f.read()
cfg = configparser.ConfigParser()
cfg.read_string('[os]\n' + data)
return cfg['os'].get('id', 'unknown')
return cfg['os'].get('id', 'unknown').replace('"', '')
except Exception:
return 'unknown'

View File

@ -63,3 +63,4 @@ def rename(newName: str) -> bool:
# All names in lower case
renamers['opensuse'] = rename
renamers['suse'] = rename
renamers['opensuse-leap'] = rename