1
0
Fork 0

Avoid error when reading file '/etc/system-release-cpe' on first run

Not all distros do have /etc/system-release-cpe
This commit is contained in:
Thomas Renninger 2020-04-14 14:43:19 +02:00 committed by Thomas Renninger
parent 595b8e0996
commit daa01693be

View file

@ -80,7 +80,8 @@ class ProfileRecommender:
elif option == "system":
if not re.match(value,
self._commands.read_file(
consts.SYSTEM_RELEASE_FILE), re.S):
consts.SYSTEM_RELEASE_FILE,
no_error = True), re.S):
match = False
elif option[0] == "/":
if not os.path.exists(option) or not re.match(value,