This adds support for enforcing version requirements on installed
packages. See the documentation in ltmpl.installpkg for details.
NOTE: On Fedora 34 grub2-2.06-7 is the first version with unicode.pf2 in
the new location.
Python will eventually close open files, but it is recommended to
explicitly close them instead of waiting for the gc or program exit.
This fixes all the uses of open...read/write in the codebase, mostly in
tests.