def compareVersions(thisvers, thatvers):
    if (munkicommon.MunkiLooseVersion(thisvers) <
            munkicommon.MunkiLooseVersion(thatvers)):
        return -1
    elif (munkicommon.MunkiLooseVersion(thisvers) ==
          munkicommon.MunkiLooseVersion(thatvers)):
        return 1
    else:
        return 2
Compares two version numbers to one another.
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/compareVersions