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

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