Comment 4 for bug 1640645

Revision history for this message
Brian Murray (brian-murray) wrote : Re: subprocess installed post-installation script returned error exit status 2

Testing an upgrade from T to X with the the -lts-xenial stack installed we can find out the following using ipdb in checkFreeSpace.

ipdb> pkg.name
'linux-image-4.4.0-47-generic'
ipdb> pkg.installed
<Version: package:'linux-image-4.4.0-47-generic' version:'4.4.0-47.68~14.04.1'>
ipdb> pkg.marked_upgrade
True

So it seems like we should check to see if the pkg is marked_upgrade.