debian/lib/python/debian_linux/debian.py: Check some version tags.

svn path=/dists/trunk/linux-2.6/; revision=14671
This commit is contained in:
Bastian Blank 2009-11-24 18:30:25 +00:00
parent b32ff12ee0
commit efe8b3659e
1 changed files with 12 additions and 1 deletions

View File

@ -117,7 +117,16 @@ class VersionLinux(Version):
)
)?
-
(?:[^-]+)
\d+
(?:
(?P<revision_experimental>
~experimental\.\d+
)
|
(?P<revision_other>
[^-]+
)?
)?
$
"""
_version_linux_re = re.compile(_version_linux_rules, re.X)
@ -136,6 +145,8 @@ $
else:
self.linux_upstream = d['version']
self.linux_dfsg = d['dfsg']
self.linux_revision_experimental = match.group('revision_experimental') and True
self.linux_revision_other = match.group('revision_other') and True
class PackageFieldList(list):
def __init__(self, value = None):