UpgradeStatus only checks for ubuntu-release-upgrader upgrades

Bug #1681596 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Triaged
Medium
Canonical Foundations Team

Bug Description

In add_release_info of the generic ubuntu apport hook we can see the following:

    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)'

UpgradeStatus doesn't take into consideration the possibility that people upgraded by editing their sources.list file and ran 'apt-get dist-upgrade', so saying it is "probably a fresh install" is wrong. Apport can up creating reports with a InstallationMedia of Precise, DistroRelease of Yakkety, but then a UpgradeStatus of "No upgrade log present..." which is wrong.

Changed in apport (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
tags: added: rls-aa-incoming
tags: removed: rls-aa-incoming
Changed in apport (Ubuntu):
assignee: nobody → Canonical Foundations Team (canonical-foundations)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.