mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
10 lines
364 B
Diff
10 lines
364 B
Diff
--- a/sos/policies/distros/__init__.py
|
|
+++ b/sos/policies/distros/__init__.py
|
|
@@ -128,6 +128,8 @@
|
|
return True
|
|
# next check os-release for a NAME or ID value we expect
|
|
+ if not os.path.exists(OS_RELEASE):
|
|
+ return False
|
|
with open(OS_RELEASE, "r", encoding='utf-8') as f:
|
|
return _check_release(f.read())
|