From ansible/ansible#77928 and #332, it appeared that Debian >= 9 do not ship anymore the MINOR SemVer segment in lsb_release "distribution release" output.
This means that setting best=True cannot be used to retrieve it, and thus version(best=True) behaves differently across Debian < 10 and Debian >= 10.
This patch implements /etc/debian_version file parsing to workaround this issue, on "Debian-like" distributions.
Dear @python-distro/maintainers,
From ansible/ansible#77928 and #332, it appeared that Debian >= 9 do not ship anymore the
MINOR
SemVer segment inlsb_release
"distribution release" output. This means that settingbest=True
cannot be used to retrieve it, and thusversion(best=True)
behaves differently across Debian < 10 and Debian >= 10.This patch implements
/etc/debian_version
file parsing to workaround this issue, on "Debian-like" distributions.Many thanks, bye :wave: