[yum-git] yum/misc.py
James Antill
james at linux.duke.edu
Fri Apr 11 17:27:31 UTC 2008
yum/misc.py | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 214551ee9ec7cf3ace354e47fd447ad42f60770f
Author: James Antill <james at and.org>
Date: Fri Apr 11 13:27:29 2008 -0400
Hacky-ish fix for Jesse and createrepo
diff --git a/yum/misc.py b/yum/misc.py
index a275ee1..bc3186f 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -31,6 +31,11 @@ def share_data(value):
store = _share_data_store
if isinstance(value, unicode):
store = _share_data_store_u
+ # hahahah, of course the above means that:
+ # hash(('a', 'b')) == hash((u'a', u'b'))
+ # ...which we have in deptuples, so just screw sharing those atm.
+ if type(value) == type(tuple):
+ return value
return store.setdefault(value, value)
def unshare_data():
More information about the Yum-cvs-commits
mailing list