aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/deb/git.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-11-23 17:37:42 +0100
committerGuido Günther <agx@sigxcpu.org>2018-11-23 17:37:42 +0100
commit90f0c8c8db6f16e2586c2739091b85031e395ce5 (patch)
tree564b4e823b3601df69e3de699a24e72faa913e5b /gbp/deb/git.py
parente5aedb16548a6a83223862b96ba2112e0c02c126 (diff)
Deduplicate version_mangle_re
Diffstat (limited to 'gbp/deb/git.py')
-rw-r--r--gbp/deb/git.py5
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)