Bastian Blank
2011-Oct-26 14:52 UTC
[Pkg-xen-changes] r917 - trunk/xen/debian/lib/python/debian_xen
Author: waldi Date: Wed Oct 26 14:52:38 2011 New Revision: 917 Log: debian/lib/python/debian_xen/debian.py: Add workaround. Modified: trunk/xen/debian/lib/python/debian_xen/debian.py Modified: trunk/xen/debian/lib/python/debian_xen/debian.py =============================================================================--- trunk/xen/debian/lib/python/debian_xen/debian.py Wed Oct 26 14:52:26 2011 (r916) +++ trunk/xen/debian/lib/python/debian_xen/debian.py Wed Oct 26 14:52:38 2011 (r917) @@ -1,5 +1,7 @@ import re -from debian_linux.debian import Version +from debian_linux.debian import Version, PackageFieldList +from debian_linux.debian import PackageFieldList as _PackageFieldList + class VersionXen(Version): _version_xen_rules = ur""" @@ -27,5 +29,8 @@ d = match.groupdict() self.xen_version = d[''version''] -if __name__ == ''__main__'': - gencontrol()() + +class PackageFieldList(_PackageFieldList): + def __init__(self, value=None): + if value: + super(self, PackageFieldList).__init__(value)