1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 01:55:37 +00:00

workers for compare for #277

This commit is contained in:
deadc0de6
2020-11-20 21:23:14 +01:00
parent cbd86fadba
commit 7a270584e5
3 changed files with 15 additions and 8 deletions

View File

@@ -19,7 +19,8 @@ from dotdrop.updater import Updater
from dotdrop.comparator import Comparator
from dotdrop.importer import Importer
from dotdrop.utils import get_tmpdir, removepath, \
uniq_list, patch_ignores, dependencies_met
uniq_list, patch_ignores, dependencies_met, \
adapt_workers
from dotdrop.linktypes import LinkTypes
from dotdrop.exceptions import YamlException, UndefinedException
@@ -278,6 +279,8 @@ def cmd_install(o):
dotfiles = o.dotfiles
prof = o.conf.get_profile()
adapt_workers(o, LOG)
pro_pre_actions = prof.get_pre_actions() if prof else []
pro_post_actions = prof.get_post_actions() if prof else []
@@ -423,6 +426,8 @@ def cmd_update(o):
paths = o.update_path
iskey = o.update_iskey
adapt_workers(o, LOG)
if not paths:
# update the entire profile
if iskey: