Created
June 14, 2017 03:29
-
-
Save quozl/891386ccb02298c7e585dceda4311ff8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/sugar3/bundle/bundleversion.py b/src/sugar3/bundle/bundleversion.py | |
index 972b8e1..31b71b6 100644 | |
--- a/src/sugar3/bundle/bundleversion.py | |
+++ b/src/sugar3/bundle/bundleversion.py | |
@@ -32,7 +32,7 @@ VERSION_RE = re.compile(r''' | |
(?P<version>\d+) # minimum 'N' | |
(?P<extraversion>(?:\.\d+)*) # any number of extra '.N' segments | |
(?: | |
- (?P<local>\-[a-zA-Z]*) # ignore any string in the comparison | |
+ (?P<local>[\-\~].[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 - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment