Fix 2 bugs in releases logic and mark 4.9 longterm

The release of stable-4.10.1 uncovered two bugs in the logic.

1. The hacky sorting routine we used to compare versions and find out
   the latest incorrectly sorted 4.9 before 4.10. This is fixed by using
   real version comparison routines from distutils.
2. The way we compared longterm releases caused 4.10 to be marked as
   longterm because 4.1 is longterm, and we matched on substring. We're
   now adding an extra dot during comparison to make sure this doesn't
   reoccur.

Also, finally mark 4.9 as longterm now that 4.10 is stable.

Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
2 files changed
tree: 7179f6cbc98a482c4afa9144baf7367cafc0ac6f
  1. content/
  2. korgi/
  3. plugins/
  4. .gitignore
  5. pelicanconf.py
  6. publishconf.py