1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 11:22:58 +00:00

Option to ignore missing files update and compare

This commit is contained in:
Marcel Robitaille
2020-12-11 00:54:51 -05:00
parent 900f705b30
commit 8081b4adf5
6 changed files with 27 additions and 10 deletions

View File

@@ -80,7 +80,8 @@ def _dotfile_update(o, path, key=False):
updater = Updater(o.dotpath, o.variables, o.conf,
dry=o.dry, safe=o.safe, debug=o.debug,
ignore=o.update_ignore,
showpatch=o.update_showpatch)
showpatch=o.update_showpatch,
ignore_missing_in_dotdrop=o.ignore_missing_in_dotdrop)
if key:
return updater.update_key(path)
return updater.update_path(path)
@@ -97,7 +98,8 @@ def _dotfile_compare(o, dotfile, tmp):
workdir=o.workdir, debug=o.debug,
backup_suffix=o.install_backup_suffix,
diff_cmd=o.diff_command)
comp = Comparator(diff_cmd=o.diff_command, debug=o.debug)
comp = Comparator(diff_cmd=o.diff_command, debug=o.debug,
ignore_missing_in_dotdrop=o.ignore_missing_in_dotdrop)
# add dotfile variables
newvars = dotfile.get_dotfile_variables()