linuxmint / mintupgrade

41 stars 16 forks source link

Skip some checks if we already point to the destination release #24

Closed clefebvre closed 2 years ago

clefebvre commented 2 years ago

The following scenario created an issue:

The first time the upgrader is run it makes the OS point to the new release's repositories, but because we exited the app, the cache isn't upgraded.

Running apt orphan checks again creates mayhem and wants to remove packages.

This commit checks if we're pointing to the new release. If we are, we skip these checks in phase 1.

clefebvre commented 2 years ago

Should fix https://github.com/linuxmint/mintupgrade/issues/21