diff --git a/src/sugar3/bundle/bundleversion.py b/src/sugar3/bundle/bundleversion.py index 972b8e1b..31b71b62 100644 --- a/src/sugar3/bundle/bundleversion.py +++ b/src/sugar3/bundle/bundleversion.py @@ -32,7 +32,7 @@ VERSION_RE = re.compile(r''' (?P\d+) # minimum 'N' (?P(?:\.\d+)*) # any number of extra '.N' segments (?: - (?P\-[a-zA-Z]*) # ignore any string in the comparison + (?P[\-\~].[a-zA-Z]*) # ignore any string in the comparison )? $''', re.VERBOSE) @@ -45,6 +45,7 @@ class NormalizedVersion(object): 1.2 1.2.3 1.2.3-peru + 1.2.3~dfsg Bad: 1.2peru # must be separated with -