[yum-git] Branch 'yum-3_2_X' - yum/update_md.py

James Antill james at linux.duke.edu
Wed Aug 6 00:14:27 UTC 2008


 yum/update_md.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 70bbcf7d5d62108f609f5ab41a38760848218368
Author: James Antill <james at and.org>
Date:   Tue Aug 5 19:38:43 2008 -0400

    Return [] instead of None in named get_notices, to match non-named path

diff --git a/yum/update_md.py b/yum/update_md.py
index e0851c7..e96b167 100644
--- a/yum/update_md.py
+++ b/yum/update_md.py
@@ -255,7 +255,7 @@ class UpdateMetadata(object):
         """ Return all notices. """
         if name is None:
             return self._notices.values()
-        return name in self._no_cache and self._no_cache[name] or None
+        return name in self._no_cache and self._no_cache[name] or []
 
     notices = property(get_notices)
 



More information about the Yum-cvs-commits mailing list