Comment 2 for bug 886111

Revision history for this message
Brian Murray (brian-murray) wrote :

The UpgradeStatus comes from this bit of code, in Precise:

    log ='/var/log/dist-upgrade/apt.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)'

Perhaps we should be looking for a different log file if /var/log/dist-upgrade/apt.log is created for upgrades that are aborted. I wonder if apt-term.log would be a better check.