make-test-data had some bytes-versus-strings issues preventing it
from running with python3.
The fixes are here, and now both of these work:
export SS_SKIP_UNSUPPORTED=1 SS_DEBUG_MIN_SERIAL=20180101 REAL_DATA=1
./tools/tenv python ./tools/make-test-data exdata-query/ exdata/data
./tools/tenv python3 ./tools/make-test-data exdata-query/ exdata/data3
The 'hack_all' nature of 'hack_all' variable name showed itself.
We had been accessing '_rows'. That is now '_releases' and
the content there is no longer a dictionary but rather a
DistroRelease object.
The reason we have to do this at all is to get at the datetime
object for 'eol'. Without that, all we can do is provide a date
and check if a release is supported as of that date. What we want
is to publish the EOL date (in YYYY-MM-DD format).
This change was present in distro_info at 0.15. Artful had 0.17,
bionic has 0.18. Apparently we just didn't notice until now.
make-test-data had some bytes-versus-strings issues preventing it
from running with python3.
The fixes are here, and now both of these work:
export SS_SKIP_UNSUPPORTED=1 SS_DEBUG_MIN_SERIAL=20180101 REAL_DATA=1
./tools/tenv python ./tools/make-test-data exdata-query/ exdata/data
./tools/tenv python3 ./tools/make-test-data exdata-query/ exdata/data3