diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-11-23 17:37:42 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-11-23 17:37:42 +0100 |
commit | 90f0c8c8db6f16e2586c2739091b85031e395ce5 (patch) | |
tree | 564b4e823b3601df69e3de699a24e72faa913e5b /gbp/deb/git.py | |
parent | e5aedb16548a6a83223862b96ba2112e0c02c126 (diff) |
Deduplicate version_mangle_re
Diffstat (limited to 'gbp/deb/git.py')
-rw-r--r-- | gbp/deb/git.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gbp/deb/git.py b/gbp/deb/git.py index 85c9da5e..12ad34d2 100644 --- a/gbp/deb/git.py +++ b/gbp/deb/git.py @@ -32,10 +32,7 @@ import gbp.log class DebianGitRepository(PkgGitRepository): """A git repository that holds the source of a Debian package""" - version_mangle_re = (r'%\(version' - r'%(?P<M>[^%])' - r'%(?P<R>([^%]|\\%))+' - r'\)s') + version_mangle_re = PkgPolicy.version_mangle_re def __init__(self, *args, **kwargs): super(DebianGitRepository, self).__init__(*args, **kwargs) |