[yum-commits] Branch 'yum-3_2_X' - 3 commits - yum/history.py
skvidal at osuosl.org
skvidal at osuosl.org
Mon Aug 9 14:38:12 UTC 2010
yum/history.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3675acf3a149f9476dcb1e7826c62cf116ab0ac8
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Aug 9 10:35:42 2010 -0400
switch from to_unicode() to to_utf8()
diff --git a/yum/history.py b/yum/history.py
index 488404d..6a485d8 100644
--- a/yum/history.py
+++ b/yum/history.py
@@ -27,7 +27,7 @@ import yum.misc as misc
import yum.constants
from yum.constants import *
from yum.packages import YumInstalledPackage, YumAvailablePackage, PackageObject
-from yum.i18n import to_unicode
+from yum.i18n import to_unicode, to_utf8
_history_dir = '/var/lib/yum/history'
@@ -610,7 +610,7 @@ class YumHistory:
# open file in append
fo = open(data_fn, 'w+')
# write data
- fo.write(to_unicode(data))
+ fo.write(to_utf8(data))
# flush data
fo.flush()
fo.close()
commit 7579f79bdb7d99c2026ca398e1ad9d67d6802b8c
Merge: ed12ee7... e6e624f...
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Aug 9 10:16:40 2010 -0400
Merge branch 'yum-3_2_X' of ssh://yum.baseurl.org/srv/projects/yum/git/yum into yum-3_2_X
* 'yum-3_2_X' of ssh://yum.baseurl.org/srv/projects/yum/git/yum:
Fix the history.vtrans_prob_pkgs VIEW for F12 sqlite, *sigh*. BZ 620872
commit ed12ee76209481f715f278069eb741c12bd72d7d
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Aug 9 10:12:05 2010 -0400
when writing out the config data in add_on - do the to_unicode() bit so we don't trace out
rh bug https://bugzilla.redhat.com/show_bug.cgi?id=622301
diff --git a/yum/history.py b/yum/history.py
index 502b908..66861c8 100644
--- a/yum/history.py
+++ b/yum/history.py
@@ -610,7 +610,7 @@ class YumHistory:
# open file in append
fo = open(data_fn, 'w+')
# write data
- fo.write(data)
+ fo.write(to_unicode(data))
# flush data
fo.flush()
fo.close()
More information about the Yum-commits
mailing list