mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 12:09:19 +00:00
check for workers in cmd_install
This commit is contained in:
@@ -165,6 +165,12 @@ def cmd_install(o):
|
|||||||
"""install dotfiles for this profile"""
|
"""install dotfiles for this profile"""
|
||||||
dotfiles = o.dotfiles
|
dotfiles = o.dotfiles
|
||||||
prof = o.conf.get_profile()
|
prof = o.conf.get_profile()
|
||||||
|
|
||||||
|
# ensure parallel install is unattended
|
||||||
|
if o.install_parallel > 1 and o.safe:
|
||||||
|
LOG.err('\"-w --workers\" must be used with \"-f --force\"')
|
||||||
|
return False
|
||||||
|
|
||||||
pro_pre_actions = prof.get_pre_actions() if prof else []
|
pro_pre_actions = prof.get_pre_actions() if prof else []
|
||||||
pro_post_actions = prof.get_post_actions() if prof else []
|
pro_post_actions = prof.get_post_actions() if prof else []
|
||||||
|
|
||||||
|
|||||||
@@ -256,9 +256,6 @@ class Options(AttrMonitor):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
self.log.err('bad option for --workers')
|
self.log.err('bad option for --workers')
|
||||||
sys.exit(USAGE)
|
sys.exit(USAGE)
|
||||||
if self.safe and self.install_parallel > 1:
|
|
||||||
self.log.err('\"-w --workers\" must be used with \"-f --force\"')
|
|
||||||
sys.exit(USAGE)
|
|
||||||
|
|
||||||
# "compare" specifics
|
# "compare" specifics
|
||||||
self.compare_focus = self.args['--file']
|
self.compare_focus = self.args['--file']
|
||||||
|
|||||||
Reference in New Issue
Block a user