apport gets update wrong
Bug #886111 reported by
pirad
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
In the attached picture is shown, that my system was upgraded to natty on 2011-11-01 but that was just the day I abborted an upgrade to oneiric. I think that information is wrong.
Changed in apport (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
To post a comment you must log in.
The UpgradeStatus comes from this bit of code, in Precise:
log ='/var/ log/dist- upgrade/ apt.log' exists( log): log).st_ mtime '%Y-%m- %d', time.gmtime(mtime))
if os.path.
mtime = os.stat(
human_mtime = time.strftime(
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)
report[ 'UpgradeStatus' ] = 'No upgrade log present (probably fresh install)'
else:
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.