vcs: allow the value to be None

This is a better fix for https://github.com/archlinuxcn/lilac/pull/91.
This commit is contained in:
lilydjwg 2018-11-24 12:18:39 +08:00
parent d0ee359209
commit c966e6faf8

View File

@ -27,7 +27,7 @@ def _parse_oldver(oldver):
return PROT_VER, count, ver
async def get_version(name, conf, **kwargs):
vcs = conf['vcs']
vcs = conf['vcs'] or ''
use_max_tag = conf.getboolean('use_max_tag', False)
ignored_tags = conf.get("ignored_tags", "").split()
oldver = conf.get('oldver')