]> code.ossystems Code Review - openembedded-core.git/commit
distro_check: partial rewrite to make it work again
authorRoss Burton <ross.burton@intel.com>
Thu, 3 Nov 2016 17:57:08 +0000 (17:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 6 Nov 2016 23:35:23 +0000 (23:35 +0000)
commit58de12eaaac9c60bb8fc84a3a965ef86d2a39ae0
tree234dc1156800f02e416cfe2e3d8fdfb0f47825b4
parent371345c0dc49bf781c27aea1e9f6a4c947fa30e6
distro_check: partial rewrite to make it work again

This library suffered as part of the Python 2 to Python 3 migration and stopped
working entirely.

Fix all the migration problems such as files being treated as strings but opened
in binary mode, insufficient use of with on files, and so on.

Rewrite large amounts to be Pythonic instead of C-in-Python.

Update OpenSuse and Fedora URLs.

Fedora now splits the archive alphabetically so handle that.

[ YOCTO #10562 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/distro_check.py