[yum-commits] Branch 'yum-3_2_X' - yum/update_md.py
skvidal at osuosl.org
skvidal at osuosl.org
Fri Jan 22 20:14:38 UTC 2010
yum/update_md.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 8947299fbe60d6552ede2824c93014563ca86bde
Author: Mark Rappoport <yum-devel at mark.org.il>
Date: Fri Jan 22 15:14:33 2010 -0500
allow setting values in an update notice
diff --git a/yum/update_md.py b/yum/update_md.py
index dadfa39..e0ae3ba 100644
--- a/yum/update_md.py
+++ b/yum/update_md.py
@@ -75,6 +75,9 @@ class UpdateNotice(object):
""" Allows scriptable metadata access (ie: un['update_id']). """
return self._md.has_key(item) and self._md[item] or None
+ def __setitem__(self, item, val):
+ self._md[item] = val
+
def __str__(self):
head = """
===============================================================================
More information about the Yum-commits
mailing list