Blame SOURCES/0005-If-there-is-no-executable-we-don-t-want-to-print-a-p.patch

0cec52
From 9847a26b7f8358432ee4c7019efb3cbad0c162b0 Mon Sep 17 00:00:00 2001
0cec52
From: Miroslav Grepl <mgrepl@redhat.com>
0cec52
Date: Mon, 12 May 2014 14:11:22 +0200
709a1f
Subject: [PATCH] If there is no executable we don't want to print a part of
709a1f
 STANDARD FILE CONTEXT
0cec52
0cec52
---
0cec52
 python/sepolicy/sepolicy/manpage.py | 3 ++-
0cec52
 1 file changed, 2 insertions(+), 1 deletion(-)
0cec52
0cec52
diff --git a/python/sepolicy/sepolicy/manpage.py b/python/sepolicy/sepolicy/manpage.py
0cec52
index 24e311a3..46092be0 100755
0cec52
--- a/python/sepolicy/sepolicy/manpage.py
0cec52
+++ b/python/sepolicy/sepolicy/manpage.py
0cec52
@@ -793,7 +793,8 @@ SELinux %(domainname)s policy is very flexible allowing users to setup their %(d
0cec52
 .PP
0cec52
 """ % {'domainname': self.domainname, 'equiv': e, 'alt': e.split('/')[-1]})
0cec52
 
0cec52
-        self.fd.write(r"""
0cec52
+        if flist_non_exec:
0cec52
+                self.fd.write(r"""
0cec52
 .PP
0cec52
 .B STANDARD FILE CONTEXT
0cec52
 
0cec52
-- 
0cec52
2.21.0
0cec52