r29761 - in /packages/unstable/update-manager/debian: changelog patches/02_locale.format_suffix.patch
jordi at users.alioth.debian.org
jordi at users.alioth.debian.org
Tue Sep 27 18:53:12 UTC 2011
Author: jordi
Date: Tue Sep 27 18:53:11 2011
New Revision: 29761
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=29761
Log:
locale.format_suffix.patch: replace locale.format() calls with
locale.format_string(), which allows adding suffixes, to fix
update-manager for python 2.7.
Added:
packages/unstable/update-manager/debian/patches/02_locale.format_suffix.patch
Modified:
packages/unstable/update-manager/debian/changelog
Modified: packages/unstable/update-manager/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/update-manager/debian/changelog?rev=29761&op=diff
==============================================================================
--- packages/unstable/update-manager/debian/changelog [utf-8] (original)
+++ packages/unstable/update-manager/debian/changelog [utf-8] Tue Sep 27 18:53:11 2011
@@ -1,3 +1,11 @@
+update-manager (0.200.5-2) unstable; urgency=low
+
+ * locale.format_suffix.patch: replace locale.format() calls with
+ locale.format_string(), which allows adding suffixes, to fix
+ update-manager for python 2.7.
+
+ -- Jordi Mallach <jordi at debian.org> Tue, 27 Sep 2011 20:50:32 +0200
+
update-manager (0.200.5-1) unstable; urgency=low
[ Stephan Peijnik ]
Added: packages/unstable/update-manager/debian/patches/02_locale.format_suffix.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/update-manager/debian/patches/02_locale.format_suffix.patch?rev=29761&op=file
==============================================================================
--- packages/unstable/update-manager/debian/patches/02_locale.format_suffix.patch (added)
+++ packages/unstable/update-manager/debian/patches/02_locale.format_suffix.patch [utf-8] Tue Sep 27 18:53:11 2011
@@ -1,0 +1,17 @@
+Index: update-manager-0.200.5/UpdateManager/Util/humanize.py
+===================================================================
+--- update-manager-0.200.5.orig/UpdateManager/Util/humanize.py 2009-09-23 21:49:16.000000000 +0200
++++ update-manager-0.200.5/UpdateManager/Util/humanize.py 2011-09-27 20:28:09.536074428 +0200
+@@ -41,10 +41,10 @@
+ return _("1 KB")
+ elif num_bytes < 1024 * 1024:
+ # TRANSLATORS: download size of small updates, e.g. "250 KB"
+- return locale.format(_("%.0f KB"), float(num_bytes)/1024)
++ return locale.format_string(_("%.0f KB"), float(num_bytes)/1024)
+ else:
+ # TRANSLATORS: download size of updates, e.g. "2.3 MB"
+- return locale.format(_("%.1f MB"), float(num_bytes) / 1024 / 1024)
++ return locale.format_string(_("%.1f MB"), float(num_bytes) / 1024 / 1024)
+
+ def humanize_seconds(seconds):
+ """
More information about the pkg-gnome-commits
mailing list