Bug#642601: (no subject)

Barry Warsaw barry at python.org
Tue Sep 27 18:33:37 UTC 2011


Yep, we fixed this in Ubuntu back in November.  Here's the merge proposal at
the time:

https://code.launchpad.net/~barry/update-manager/673297-py27/+merge/40510

And the patch we applied (omitting debian/changelog):

=== modified file 'UpdateManager/Core/utils.py'
--- UpdateManager/Core/utils.py	2010-08-12 09:54:02 +0000
+++ UpdateManager/Core/utils.py	2010-11-10 10:04:04 +0000
@@ -349,10 +349,10 @@
         return _("1 KB")
     elif bytes < 1024 * 1024:
         # TRANSLATORS: download size of small updates, e.g. "250 KB"
-        return locale.format(_("%.0f KB"), bytes/1024)
+        return locale.format_string(_("%.0f KB"), bytes/1024)
     else:
         # TRANSLATORS: download size of updates, e.g. "2.3 MB"
-        return locale.format(_("%.1f MB"), bytes / 1024 / 1024)
+        return locale.format_string(_("%.1f MB"), bytes / 1024 / 1024)
 
 if __name__ == "__main__":
   #print mirror_from_sources_list()


Looks like the code's different now, but it confirms your patch is the right
way to go.  This was applied in:

update-manager (1:0.145.1) natty; urgency=low
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20110927/86dc29aa/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list