euscan: default mangling rule is gentoo

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
Corentin Chary 2012-08-07 09:32:11 +02:00
parent b03541c97d
commit 5caca5f41f
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ def apply_mangling_rules(kind, rules, string):
return string
def mangle_version(up_pv, options):
# Default rule is gentoo when empty
if 'versionmangle' not in options or not options['versionmangle']:
options['versionmangle'] = ['gentoo']
return apply_mangling_rules('versionmangle', options, up_pv)
def mangle_url(url, options):