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

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