~ubuntu-branches/ubuntu/trusty/xen-common/trusty

« back to all changes in this revision

Viewing changes to debian/lib/python/debian_xen/debian.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-02-06 10:49:43 UTC
  • mfrom: (10.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20120206104943-fo54o8stjp2ikglj
Tags: 4.1.2-1ubuntu1
* Merge from Debian testing.  Remaining changes:
  - Upate maintainer according to spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    _version_xen_rules = ur"""
95
95
^
96
96
(?P<version>
97
 
    (?P<major>\d+)
98
 
    \.\d+
 
97
    \d+\.\d+
99
98
)
100
99
\.\d+
101
100
(?:
102
 
    \+hg
103
 
    (?P<hg_rev>
104
 
        \d+
105
 
    )
 
101
    \+hg\d+
 
102
    |
 
103
    ~rc\d+
106
104
)?
107
105
-
108
106
(?:[^-]+)
116
114
        if match is None:
117
115
            raise ValueError("Invalid debian xen version")
118
116
        d = match.groupdict()
119
 
        self.xen_major = d['major']
120
117
        self.xen_version = d['version']
121
 
 
122
 
if __name__ == '__main__':
123
 
    gencontrol()()