This is because you have /var/log/dist-upgragde/main.log.partial in you
/var/log/dist-upgrade directory and UpgradeStatus looks for /var/log
/dist-upgrade/main.log.
log ='/var/log/dist-upgrade/main.log'
if os.path.exists(log):
mtime = os.stat(log).st_mtime
human_mtime = time.strftime('%Y-%m-%d', time.gmtime(mtime))
delta = time.time() - mtime
# Would be nice if this also showed which release was originally
installed
report['UpgradeStatus'] = 'Upgraded to %s on %s (%d days ago)' %
(release_codename, human_mtime, delta / 86400)
else:
report['UpgradeStatus'] = 'No upgrade log present (probably fresh
install)'
** Changed in: apport (Ubuntu)
Importance: Undecided => Medium
** Changed in: apport (Ubuntu)
Status: New => Triaged
** Summary changed:
- Incorrect data in apport report
+ UpgradeStatus incorrectly calculated
** Tags added: quantal
** Tags added: bitesize
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1021667
Title:
UpgradeStatus incorrectly calculated
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1021667/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs