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

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