2022-05-19 18:25:34 +00:00
|
|
|
From 1747f59fece8183772e5591ce5b5feb5f421f602 Mon Sep 17 00:00:00 2001
|
2020-10-14 23:23:12 +00:00
|
|
|
From: Miroslav Grepl <mgrepl@redhat.com>
|
|
|
|
Date: Fri, 20 Feb 2015 16:42:01 +0100
|
|
|
|
Subject: [PATCH] We want to remove the trailing newline for
|
|
|
|
/etc/system_release.
|
2022-05-19 18:25:34 +00:00
|
|
|
Content-type: text/plain
|
2020-10-14 23:23:12 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
python/sepolicy/sepolicy/__init__.py | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/python/sepolicy/sepolicy/__init__.py b/python/sepolicy/sepolicy/__init__.py
|
2022-05-19 18:25:34 +00:00
|
|
|
index 9447812b7450..aa8beda313c8 100644
|
2020-10-14 23:23:12 +00:00
|
|
|
--- a/python/sepolicy/sepolicy/__init__.py
|
|
|
|
+++ b/python/sepolicy/sepolicy/__init__.py
|
2021-09-29 16:18:29 +00:00
|
|
|
@@ -1228,7 +1228,7 @@ def get_os_version():
|
2020-10-14 23:23:12 +00:00
|
|
|
system_release = ""
|
|
|
|
try:
|
|
|
|
with open('/etc/system-release') as f:
|
|
|
|
- system_release = f.readline()
|
|
|
|
+ system_release = f.readline().rstrip()
|
|
|
|
except IOError:
|
|
|
|
system_release = "Misc"
|
|
|
|
|
|
|
|
--
|
2022-05-19 18:25:34 +00:00
|
|
|
2.35.1
|
2020-10-14 23:23:12 +00:00
|
|
|
|