-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk45uwsACgkQrlYvE4MpobPAVgCfdZNTYULjDYUJAIT/fXbuNdXH dboAn3+f3eOgJR7PRRFpnZkNXHNu4mVW =vBca -----END PGP SIGNATURE-----
>From aadcdb1747dd003f90fc7e380d39572df03e211d Mon Sep 17 00:00:00 2001 From: Eric Paris <eparis@xxxxxxxxxx> Date: Wed, 3 Aug 2011 11:56:17 -0400 Subject: [PATCH 088/155] policycoreutils: semanage: remove useless empty lines This patch just removes some blank lines that we don't need. Makes it all purdy. Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- policycoreutils/semanage/semanage | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage index 41c6361..1f2c4f0 100644 --- a/policycoreutils/semanage/semanage +++ b/policycoreutils/semanage/semanage @@ -40,7 +40,6 @@ except IOError: __builtin__.__dict__['_'] = unicode if __name__ == '__main__': - manageditems=[ "boolean", "login", "user", "port", "interface", "node", "fcontext"] action = False def set_action(option): @@ -270,6 +269,7 @@ Object-specific Options (see above): if o == "-d" or o == "--delete": set_action(o) delete = True + if o == "-D" or o == "--deleteall": set_action(o) deleteall = True @@ -349,7 +349,6 @@ Object-specific Options (see above): value = "off" modify = True - if object == "login": OBJECT = seobject.loginRecords(store) @@ -372,7 +371,6 @@ Object-specific Options (see above): OBJECT = seobject.booleanRecords(store) if use_file: modify = True - if object == "module": OBJECT = seobject.moduleRecords(store) @@ -391,7 +389,6 @@ Object-specific Options (see above): OBJECT.deleteall() return - if extract: for i in OBJECT.customized(): print "%s %s" % (object, str(i)) @@ -497,7 +494,6 @@ Object-specific Options (see above): else: OBJECT.delete(target) - return raise ValueError(_("Invalid command: semanage %s") % " ".join(argv)) -- 1.7.6
Attachment:
0088-policycoreutils-semanage-remove-useless-empty-lines.patch.sig
Description: PGP signature