Two spaces in "About 1 hour remaining"

Bug #288912 reported by Reuben Thomas on 2008-10-24
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Low
Mohamed Amine Ilidrissi

Bug Description

Binary package hint: update-manager

When the update-manager's time estimate is exactly one hour left, it has two spaces in the message "About 1 hour remaining" (after "hour").

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: update-manager 1:0.93.30
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/sbin:/usr/sbin:/usr/NX/bin:/usr/local/epocemx/bin:/home/username/bin:/home/username/local/i686/bin:/home/username/local/bin:/home/username/.luarocks/bin:/home/username/Work/Adsensus/svn/nancy/trunk:/home/username/Work/Adsensus/svn/adsensus/trunk:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_GB.UTF-8
SourcePackage: update-manager
Uname: Linux 2.6.27-7-generic i686

Related branches

Reuben Thomas (rrt) wrote :
Changed in update-manager:
importance: Undecided → Low
Changed in update-manager:
milestone: none → later
Brian Murray (brian-murray) wrote :

This seems to only happen when the remaining is less than 3660 seconds and greater than 3540 seconds. Here's a simple way to test it:

14:56:09 - flash:[...e_trees/update-manager/main] python -c 'from DistUpgrade.DistUpgradeView import FuzzyTimeToStr; print " %s remaining" % FuzzyTimeToStr(3600)'
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
 1 hour remaining

Changed in update-manager:
status: New → Confirmed
Brian Murray (brian-murray) wrote :

It'll also happen at the start of the 1 day marker so 86400 seconds.

Jean-Baptiste Lallement (jibel) wrote :

There is also a double space between 'days' and 'minutes' when days > 0, hours = 0 and minutes = 0

Changed in update-manager:
assignee: nobody → jibel
status: Confirmed → In Progress
Jean-Baptiste Lallement (jibel) wrote :

Fix committed in my branch.

Changed in update-manager:
status: In Progress → Fix Committed
XXXXXXX (yddraiggoch) wrote :

I've attached a patch as another proposed fix for this and changed the status back to confirmed as the fix hasn't been committed to the main branch. This is still present in jaunty as of update manager 1:0.101.0

Changed in update-manager:
assignee: jibel → nobody
status: Fix Committed → Confirmed
Brian Murray (brian-murray) wrote :

Could you take a look at the branch attached to this bug Michael?

Changed in update-manager (Ubuntu):
status: Confirmed → Triaged
assignee: nobody → mvo
Brian Murray (brian-murray) wrote :

Still an issue with version 0.121 of update-manager in Karmic.

Changed in update-manager (Ubuntu):
milestone: later → karmic-alpha-3
Rolf Leggewie (r0lf) wrote :

ready to commit patch

pinging mvo

Changed in update-manager (Ubuntu):
milestone: karmic-alpha-3 → lucid-alpha-3
Changed in update-manager (Ubuntu):
assignee: Michael Vogt (mvo) → Mohamed Amine IL Idrissi (ilidrissi.amine)
status: Triaged → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.142.9

---------------
update-manager (1:0.142.9) maverick; urgency=low

  [ Mohamed Amine IL Idrissi ]
  * UpdateManager/UpdateManager.py: Changed the whitespace place to not
    confuse translators, many thanks Milo Casagrande (LP: #621373)
  * DistUpgrade/DistUpgradeView.py: There won't be two spaces in
    FuzzyTimeToStr when days or hours are > 0 and hours or minutes are
    equal to 0 (LP: #288912)

  [ Michael Vogt ]
  * remove the seperate demotions dialog and move it into the
    "Confirm changes" step
  * use a treeview instead of a list to show the details of the
    changes in the gtk frontend
  * UpdateManager/UpdateManager.py, data/glade/UpdateManager.ui:
    - fix label wraping for label_downsize
 -- Michael Vogt <email address hidden> Wed, 25 Aug 2010 11:17:00 +0200

Changed in update-manager (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers