Author: stef-guest Date: 2006-08-09 15:45:50 +0000 (Wed, 09 Aug 2006) New Revision: 4534 Modified: lib/python/debian_support.py Log: allow ~ in versions Modified: lib/python/debian_support.py ==================================================================--- lib/python/debian_support.py 2006-08-09 09:14:59 UTC (rev 4533) +++ lib/python/debian_support.py 2006-08-09 15:45:50 UTC (rev 4534) @@ -120,8 +120,8 @@ return cmp(self.__parsed, other.__parsed) def __parse(self, v, regexp=\ - re.compile(r''^(?:(\d+):)?([A-Za-z0-9.+:-]+?)'' - + r''(?:-([A-Za-z0-9.+]+))?$'')): + re.compile(r''^(?:(\d+):)?([A-Za-z0-9.+~:-]+?)'' + + r''(?:-([A-Za-z0-9.+~]+))?$'')): match = regexp.match(v) if match is None: raise ValueError, "invalid Debian version string"