mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-01-01 11:32:04 +00:00
Merge pull request #89 from yan12125/cache-vcs-by-name
Use the name as the fallback cache key for vcs packages
This commit is contained in:
commit
377242f70b
@ -7,12 +7,16 @@ import os.path as _path
|
||||
from pkg_resources import parse_version
|
||||
import structlog
|
||||
|
||||
from . import conf_cacheable_with_name
|
||||
|
||||
logger = structlog.get_logger(logger_name=__name__)
|
||||
_self_path = _path.dirname(_path.abspath(__file__))
|
||||
_cmd_prefix = ['/bin/bash', _path.join(_self_path, 'vcs.sh')]
|
||||
|
||||
PROT_VER = 1
|
||||
|
||||
get_cacheable_conf = conf_cacheable_with_name('vcs')
|
||||
|
||||
def _parse_oldver(oldver):
|
||||
if oldver is None:
|
||||
return PROT_VER, 0, ''
|
||||
|
Loading…
Reference in New Issue
Block a user