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.
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 image-4. 4.0-47- generic' 'linux- image-4. 4.0-47- generic' version: '4.4.0- 47.68~14. 04.1'>
'linux-
ipdb> pkg.installed
<Version: package:
ipdb> pkg.marked_upgrade
True
So it seems like we should check to see if the pkg is marked_upgrade.