[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
As far as I can tell this is fixed in Intrepid, I'm not quite certain when the fix made it in though. I tested it using the command provided by Michael in comment 6 and saw the following: 19:46:51 - flash:[~] python -c 'from DistUpgrade.DistUpgradeView import FuzzyTimeToStr; print FuzzyTimeToStr(3684)' /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 1 minute ** Changed in: update-manager (Ubuntu) Status: In Progress = Fix Released -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
** Changed in: update-manager (Ubuntu) Status: Confirmed = Incomplete -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
** Changed in: update-manager (Ubuntu) Assignee: (unassigned) = Michael Vogt (mvo) Status: Incomplete = In Progress -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
Michael: is this one better? -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
Thanks Roberto for updating the patch and sorry that I have not replied earlier. Unfortunately there are some issue with it still. There is a function called ngettext that should be capable to handle the cases with singular/plural. The info page that Colin mentions gives a good overview about it. In a nutshell there are languages that have not only one item / many items but instead one, less than ten, ten or more and different prefix/suffix rules. It can get quite complex. If you could have a look at this, that would be much appreciated. Thanks, Michael -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
** Changed in: update-manager (Ubuntu) Assignee: (unassigned) = Roberto Sarrionandia (rbs-tito) -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
Ok, this patch is using the ngettext function to handle all plurals, and it also returned to the fuzzy method it is named after! (seconds only show if it is less than one minute) I hope I've got it right this time. ** Attachment added: New patch http://launchpadlibrarian.net/12335790/update-manager.patch ** Attachment removed: Adds conditions for one day, hour, minute, second http://launchpadlibrarian.net/11649477/update-manager.patch ** Attachment removed: update-manager-0.87.6.patch http://launchpadlibrarian.net/11848449/update-manager-0.87.6.patch ** Changed in: update-manager (Ubuntu) Assignee: Roberto Sarrionandia (rbs-tito) = (unassigned) -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
It would be worth looking at the Plural forms node in 'info gettext', which goes into issues around this in some depth. -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
** Changed in: update-manager (Ubuntu) Assignee: Roberto Sarrionandia (rbs-tito) = (unassigned) -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
OK, I've taken a whole different approach Here's the new patch, I've put it through a load of tests in the manner that you described above. Let me know if it's good this time! ** Attachment added: update-manager-0.87.6.patch http://launchpadlibrarian.net/11848449/update-manager-0.87.6.patch ** Tags added: patch -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
Thanks for the patch. A easy way to test the patch is to run in the update-manager top level directory: $ python -c 'from DistUpgrade.DistUpgradeView import FuzzyTimeToStr; FuzzyTimeToStr(3443)' when the patch is applied. This leads to: Traceback (most recent call last): File string, line 1, in module File DistUpgrade/DistUpgradeView.py, line 33 if sec = 60*60*24: ^ SyntaxError: invalid syntax After correcting the = to ==, I get: $ python -c 'from DistUpgrade.DistUpgradeView import FuzzyTimeToStr; print FuzzyTimeToStr(3743)' 1 hours 2 minutes So the patch fixes the cases where it is exactly one hour, but unfortunately not the case where its something between 1 hour and 2 hours. If you could update the patch to cover those cases, that would be much appreciated. Thanks, Michael ** Tags removed: patch -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
Thanks for your feedback, I'm still learning! I'll make a new patch once I've sobered up! ** Changed in: update-manager (Ubuntu) Assignee: (unassigned) = Roberto Sarrionandia (rbs-tito) -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
** Changed in: update-manager (Ubuntu) Assignee: (unassigned) = Roberto Sarrionandia (rbs-tito) -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
It's in the Hardy Alpha too. I'll take a look at it. -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
This patch should fix it... hopefully! I'm unable to test it as I'm fully upgraded already. Please could someone review, and possibly test, my patch? Thanks! ** Attachment added: Add conditions for 1 day, hour, minute, second http://launchpadlibrarian.net/11646996/update-manager.patch ** Changed in: update-manager (Ubuntu) Assignee: Roberto Sarrionandia (rbs-tito) = (unassigned) ** Tags added: patch -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
Sorry, last patch is broken. Damn you Jono, advocating Gedit! Here's a better one ** Attachment added: Adds conditions for one day, hour, minute, second http://launchpadlibrarian.net/11649477/update-manager.patch ** Attachment removed: Add conditions for 1 day, hour, minute, second http://launchpadlibrarian.net/11646996/update-manager.patch -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
I also noticed this when upgrading from Feisty to Gutsy. ** Changed in: update-manager (Ubuntu) Importance: Undecided = Low -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 87914] Re: Progress bar refers to 1 minutes or 1 hours
** Summary changed: - typo in the progression bar of update-manager + Progress bar refers to 1 minutes or 1 hours ** Description changed: - Binary package hint: update-manager + Occurs in: Ubuntu 6.06, 6.10, 7.04 - At the stage Fetching and installing the upgrades, the progression bar + At the stage Fetching and installing the upgrades, the progress bar indicates About 1 hours 3 minutes remaining. There is a typo, as hour - shouldn't be plural. - - This occured during an upgrade from dapper to edgy. - - Thank you for your work. + shouldn't be plural. The same problem occurs with 1 minutes. -- Progress bar refers to 1 minutes or 1 hours https://bugs.launchpad.net/bugs/87914 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs