Description of problem:
Before alone upgrade done be redhat-upgrade-tool. preupgrade script should detect if redhat-upgrade-tool is executed with proper target version.
If not then upgrade should fail.
Question is if this can be done directly in redhat-upgrade-tool so that we will save time before downloading packages.
I think that redhat-upgrade-tool can detect if version file (generated by preupgrade-assistant-contents) exits and then compare them with command line arguments.
1) If version file doesn't exist then upgrade will stop and doesn't continue.
2) If version file contains version 7.1 then redhat-upgrade-tool should have arguments with 7.1 version too and upgrade continues.
3) If version file contains version 7.1 and redhat-upgrade-tool arguments are with 7.0 version then it have to stop as well.
4) If version file contains version 7.0 and redhat-upgrade-tool contains 7.1 then upgrade won't be possible too.
I think that this is a good part for redhat-upgrade-tool.
What do you think?
I will generate a new bug.
Huge typos from.