virt-manager/virtinst
Cole Robinson 95ba78f3e8 osdict: Simplify os list sorting
Previously we tried to use a combination of distro class and version
number to produce a correct ordering that was independent of the
osinfo short ID. The original intent was to have correct ordering
for Windows entries in the virt-manager UI, since the short ID
values are all over the place.

Nowadays that doesn't really matter, since we weed out old
unsupported entries by default. And in the mean time, our current
sort method gives some weird results like interspersing silverblue
entries with fedora entries.

Using a natural/human sort is simpler and handles things pretty well.

Change the UI to sort by the OS label too which preserves some of
the good behavior of original method

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-12 11:53:09 -05:00
..
devices devices: graphics: tweak a few log messages 2022-02-10 10:17:15 -05:00
domain cli: Add --launchSecurity kernelHashes=yes|no 2022-01-26 17:08:27 -05:00
install osdict: Simplify os list sorting 2022-02-12 11:53:09 -05:00
__init__.py i18n: globally install also the ngettext function 2020-07-14 11:24:14 -04:00
_progresspriv.py tests: Add full test coverage for progress text output 2021-06-09 16:52:12 -04:00
buildconfig.py Prep for release 3.2.0 2020-11-14 16:15:22 -05:00
capabilities.py i18n: fix string puzzles in capabilities lookup error msgs 2020-09-17 15:38:42 -04:00
cli.py cli: Add --os-variant list option to print OS name values 2022-02-12 11:53:09 -05:00
cloner.py cloner: Improve error message about unimplemented rbd support 2022-01-26 16:58:45 -05:00
connection.py Fix some pylint, exclude some new warnings 2021-10-04 16:04:33 -04:00
diskbackend.py diskbackend: Restrict format->driver_type even more 2022-01-19 14:21:48 -05:00
domcapabilities.py devices: video: Use virtio default more often 2022-02-03 13:42:49 -05:00
generatename.py generatename: Move libvirt collision handling to callers 2019-06-11 17:54:45 -04:00
guest.py guest: Move uefi check into _add_default_tpm 2022-01-26 13:23:27 -05:00
logger.py tests: abide logging options for clitests 2019-12-11 17:57:28 -05:00
network.py hostnets: Remove SR-IOV info listing 2019-06-16 23:48:51 -04:00
nodedev.py nodedev: Move the CLI string format lookup to cli.py 2022-01-21 13:20:46 -05:00
osdict.py osdict: Simplify os list sorting 2022-02-12 11:53:09 -05:00
pollhelpers.py objects: Erase the notion of connkey 2020-09-01 14:27:11 -04:00
progress.py progress: Drop tqdm and revert back to local urlgrabber copy 2021-06-09 16:52:11 -04:00
snapshot.py virtinst: move UI only functions into virtManager 2019-06-09 18:33:45 -04:00
storage.py pylint: Fix some deprecation warnings and minor bits 2022-01-11 12:32:23 -05:00
support.py object: nodedev: support isActive state 2022-01-17 14:37:06 -05:00
uri.py xmlutil: add a diff() helper 2020-09-05 15:49:55 -04:00
virtclone.py Remove shebangs from library paths 2021-06-22 19:54:37 -04:00
virtinstall.py cli: Add --os-variant list option to print OS name values 2022-02-12 11:53:09 -05:00
virtxml.py cli: Add --os-variant list option to print OS name values 2022-02-12 11:53:09 -05:00
xmlapi.py cli: Add --xml xpath option for virt-install and virt-xml 2020-09-11 15:04:37 -04:00
xmlbuilder.py xmlbuilder: Make embedded device XML print correctly 2021-10-12 15:10:39 -04:00
xmlutil.py xmlutil: add a diff() helper 2020-09-05 15:49:55 -04:00