mpkg: introduce version_lt and version_latest functions.
mpkg: introduce version_lt and version_latest functions.

Those function allow to compare package versions.

version_lt(val, ref) compares the two versions given in parameters 'val' and
'ref'. It prints the lowest version and returns true if 'val' version is lower
than (lt) the 'ref' version.

version_latest() prints the lowest version of all the versions given from
stdin. A single version per line.

Signed-off-by: Gaël PORTAY <1666f60cfa201a60b0ea694168a0b6932673170a@gmail.com>

gazoo74/mpkg,gazoo74/mpkg