lintVital was added in 0.8, only exclude it then

This commit is contained in:
Daniel Martí 2014-06-12 10:00:46 +02:00
parent 3c08b51dfb
commit 9779979e3a
2 changed files with 25 additions and 1 deletions

View file

@ -29,6 +29,7 @@ import time
import json
from ConfigParser import ConfigParser
from optparse import OptionParser, OptionError
from distutils.version import LooseVersion
import logging
import common
@ -707,7 +708,8 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
# Avoid having to use lintOptions.abortOnError false
# TODO: Do flavours or project names change this task name?
commands += ['-x', 'lintVitalRelease']
if thisbuild['gradlepluginver'] >= LooseVersion('0.8'):
commands += ['-x', 'lintVital' + flavours_cmd + 'Release']
p = FDroidPopen(commands, cwd=gradle_dir)