Blame SOURCES/0007-We-want-to-remove-the-trailing-newline-for-etc-syste.patch

0cec52
From bfcb599d9424ef6ffcd250931c89675b451edd00 Mon Sep 17 00:00:00 2001
0cec52
From: Miroslav Grepl <mgrepl@redhat.com>
0cec52
Date: Fri, 20 Feb 2015 16:42:01 +0100
709a1f
Subject: [PATCH] We want to remove the trailing newline for
0cec52
 /etc/system_release.
0cec52
0cec52
---
0cec52
 python/sepolicy/sepolicy/__init__.py | 2 +-
0cec52
 1 file changed, 1 insertion(+), 1 deletion(-)
0cec52
0cec52
diff --git a/python/sepolicy/sepolicy/__init__.py b/python/sepolicy/sepolicy/__init__.py
0cec52
index 88a2b8f6..0c66f4d5 100644
0cec52
--- a/python/sepolicy/sepolicy/__init__.py
0cec52
+++ b/python/sepolicy/sepolicy/__init__.py
0cec52
@@ -1212,7 +1212,7 @@ def get_os_version():
0cec52
     system_release = ""
0cec52
     try:
0cec52
         with open('/etc/system-release') as f:
0cec52
-            system_release = f.readline()
0cec52
+            system_release = f.readline().rstrip()
0cec52
     except IOError:
0cec52
         system_release = "Misc"
0cec52
 
0cec52
-- 
0cec52
2.21.0
0cec52