Fix genman to stop truncating boolean descriptions that do not end with a '.', allow users to specify a list of domains to produce, fix spelling mistake

This commit is contained in:
Dan Walsh 2012-07-26 16:11:52 -04:00
parent 2676121267
commit 03f80ae03a

View File

@ -209,7 +209,9 @@ control.
if b.endswith("anon_write"):
self.anon_list.append(b)
else:
desc = seobject.booleans_dict[b][2][0].lower() + seobject.booleans_dict[b][2][1:-1]
desc = seobject.booleans_dict[b][2][0].lower() + seobject.booleans_dict[b][2][1:]
if desc[-1] == ".":
desc = desc[:-1]
self.booltext += """
.PP
If you want to %s, you must turn on the %s boolean.
@ -361,7 +363,7 @@ Path%s:
self.fd.write("""
.PP
Note: File context can be temporarily modified with the chcon command. If you want to permanantly change the file context you need to use the
Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the
.B semanage fcontext
command. This will modify the SELinux labeling database. You will need to use
.B restorecon
@ -441,5 +443,8 @@ selinux(8), %s(8), semanage(8), restorecon(8), chcon(1)
if self.booltext != "":
self.fd.write(", setsebool(8)")
if len(sys.argv) > 2:
domains = sys.argv[2:]
for domainname in domains:
ManPage(domainname, sys.argv[1])