[setools/f13/master] - Return None when no records match python setools.sesearch
Daniel J Walsh
dwalsh at fedoraproject.org
Thu Oct 14 18:32:32 UTC 2010
commit 98437ee95afdecc0633003394a6e8a45a69758d7
Author: Dan Walsh <dwalsh at redhat.com>
Date: Thu Oct 14 14:32:27 2010 -0400
- Return None when no records match python setools.sesearch
setools-python.patch | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/setools-python.patch b/setools-python.patch
index 01cb56a..690cf57 100644
--- a/setools-python.patch
+++ b/setools-python.patch
@@ -815,7 +815,7 @@ diff -up setools-3.3.7/python/Makefile.in.python setools-3.3.7/python/Makefile.i
+.NOEXPORT:
diff -up setools-3.3.7/python/setools/__init__.py.python setools-3.3.7/python/setools/__init__.py
--- setools-3.3.7/python/setools/__init__.py.python 2010-07-30 15:02:10.000000000 -0400
-+++ setools-3.3.7/python/setools/__init__.py 2010-08-03 15:52:27.000000000 -0400
++++ setools-3.3.7/python/setools/__init__.py 2010-10-14 14:31:06.000000000 -0400
@@ -0,0 +1,50 @@
+#!/usr/bin/env python
+
@@ -854,7 +854,7 @@ diff -up setools-3.3.7/python/setools/__init__.py.python setools-3.3.7/python/se
+
+
+ dict_list = _sesearch.sesearch(info)
-+ if len(perms) != 0:
++ if dict_list and len(perms) != 0:
+ dict_list = filter(lambda x: dict_has_perms(x, perms), dict_list)
+ return dict_list
+
More information about the scm-commits
mailing list