1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 13:09:17 +00:00

add check_version config option

This commit is contained in:
deadc0de6
2021-10-10 16:47:04 +02:00
parent 27cf25a920
commit 15c1a09a48
6 changed files with 36 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ from dotdrop.comparator import Comparator
from dotdrop.importer import Importer
from dotdrop.utils import get_tmpdir, removepath, \
uniq_list, patch_ignores, dependencies_met, \
adapt_workers
adapt_workers, check_version
from dotdrop.linktypes import LinkTypes
from dotdrop.exceptions import YamlException, \
UndefinedException, UnmetDependency
@@ -829,6 +829,9 @@ def main():
LOG.dbg('\n\n')
options_time = time.time() - time0
if opts.check_version:
check_version()
time0 = time.time()
ret, command = _exec_command(opts)
cmd_time = time.time() - time0