1
0
Fork 0

Merge pull request #259 from openSUSE/no_system_cpe_file_error

Avoid error when reading file '/etc/system-release-cpe' on first run
This commit is contained in:
Jaroslav Škarvada 2020-06-05 23:16:58 +02:00 committed by GitHub
commit 9bca523f43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,