2019-12-06 08:35:34 +00:00
|
|
|
From 59d6989beb341fb17f87b270e4fc8d55351d3a51 Mon Sep 17 00:00:00 2001
|
2019-03-22 16:35:38 +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.
|
|
|
|
|
|
|
|
---
|
|
|
|
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
|
2019-10-16 09:36:01 +00:00
|
|
|
index ad718797ca68..ea05d892bf3b 100644
|
2019-03-22 16:35:38 +00:00
|
|
|
--- a/python/sepolicy/sepolicy/__init__.py
|
|
|
|
+++ b/python/sepolicy/sepolicy/__init__.py
|
2019-10-16 09:36:01 +00:00
|
|
|
@@ -1211,7 +1211,7 @@ def get_os_version():
|
2019-03-22 16:35:38 +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"
|
|
|
|
|
|
|
|
--
|
2019-10-16 09:36:01 +00:00
|
|
|
2.23.0
|
2019-03-22 16:35:38 +00:00
|
|
|
|