Merge lp:~ilidrissi.amine/update-manager/update-manager.fix-288912 into lp:update-manager

Proposed by Mohamed Amine Ilidrissi
Status: Merged
Merged at revision: 1895
Proposed branch: lp:~ilidrissi.amine/update-manager/update-manager.fix-288912
Merge into: lp:update-manager
Diff against target: 39 lines (+14/-0)
2 files modified
DistUpgrade/DistUpgradeView.py (+6/-0)
debian/changelog (+8/-0)
To merge this branch: bzr merge lp:~ilidrissi.amine/update-manager/update-manager.fix-288912
Reviewer Review Type Date Requested Status
Michael Vogt Pending
Review via email: mp+32367@code.launchpad.net

Description of the change

This fixes bug 288912.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'DistUpgrade/DistUpgradeView.py'
--- DistUpgrade/DistUpgradeView.py 2010-07-12 14:19:33 +0000
+++ DistUpgrade/DistUpgradeView.py 2010-08-11 19:03:44 +0000
@@ -66,6 +66,9 @@
6666
67 # now assemble the string67 # now assemble the string
68 if days > 0:68 if days > 0:
69 # Don't print str_hours if it's an empty string, see LP: #288912
70 if map["str_hours"] == '':
71 return map["str_days"]
69 # TRANSLATORS: you can alter the ordering of the remaining time72 # TRANSLATORS: you can alter the ordering of the remaining time
70 # information here if you shuffle %(str_days)s %(str_hours)s %(str_minutes)s73 # information here if you shuffle %(str_days)s %(str_hours)s %(str_minutes)s
71 # around. Make sure to keep all '$(str_*)s' in the translated string74 # around. Make sure to keep all '$(str_*)s' in the translated string
@@ -81,6 +84,9 @@
81 return map["str_hours"]84 return map["str_hours"]
82 # when we are near the end, become more precise again85 # when we are near the end, become more precise again
83 elif hours > 0:86 elif hours > 0:
87 # Don't print str_minutes if it's an empty string, see LP: #288912
88 if map["str_minutes"] == '':
89 return map["str_hours"]
84 # TRANSLATORS: you can alter the ordering of the remaining time90 # TRANSLATORS: you can alter the ordering of the remaining time
85 # information here if you shuffle %(str_hours)s %(str_minutes)s91 # information here if you shuffle %(str_hours)s %(str_minutes)s
86 # around. Make sure to keep all '$(str_*)s' in the translated string92 # around. Make sure to keep all '$(str_*)s' in the translated string
8793
=== modified file 'debian/changelog'
--- debian/changelog 2010-08-11 07:07:48 +0000
+++ debian/changelog 2010-08-11 19:03:44 +0000
@@ -1,3 +1,11 @@
1update-manager (1:0.142.8) UNRELEASED; urgency=low
2
3 * DistUpgrade/DistUpgradeView.py: There won't be two spaces in
4 FuzzyTimeToStr when days or hours are > 0 and hours or minutes are
5 equal to 0 (LP: #288912)
6
7 -- Mohamed Amine IL Idrissi <ilidrissiamine@gmail.com> Wed, 11 Aug 2010 18:03:33 +0000
8
1update-manager (1:0.142.7) maverick; urgency=low9update-manager (1:0.142.7) maverick; urgency=low
2 10
3 [ Mohamed Amine IL Idrissi ]11 [ Mohamed Amine IL Idrissi ]

Subscribers

People subscribed via source and target branches

to status/vote changes: