X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Flcm_utils.py;h=b53f191850e5ec7aa407ada672fcf99aa5a35bc0;hb=27246d812b18dd1dd21ff26efef5f15745910d65;hp=1ea370b70a83881d6b550489a9d1ca35c14866b5;hpb=25ec7730065edeb0a8ade17a426fc9d6b21e6c30;p=osm%2FLCM.git diff --git a/osm_lcm/lcm_utils.py b/osm_lcm/lcm_utils.py index 1ea370b..b53f191 100644 --- a/osm_lcm/lcm_utils.py +++ b/osm_lcm/lcm_utils.py @@ -13,10 +13,13 @@ class LcmException(Exception): def versiontuple(v): - """utility for compare dot separate versions. Fills with zeros to proper number comparison""" + """utility for compare dot separate versions. Fills with zeros to proper number comparison + package version will be something like 4.0.1.post11+gb3f024d.dirty-1. Where 4.0.1 is the git tag, postXX is the + number of commits from this tag, and +XXXXXXX is the git commit short id. Total length is 16 with until 999 commits + """ filled = [] for point in v.split("."): - filled.append(point.zfill(8)) + filled.append(point.zfill(16)) return tuple(filled)