1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:19:46 +00:00

fix bug when importing with the -l flag

This commit is contained in:
deadc0de6
2018-12-27 15:31:00 +01:00
parent 998f936a25
commit 7e42ccbee5
2 changed files with 3 additions and 2 deletions

View File

@@ -540,7 +540,7 @@ class Cfg:
if exists:
if debug:
self.log.dbg('key already exists: {}'.format(key))
# when dotfile already there somewhere
# retrieve existing dotfile
dotfile = self.dotfiles[key]
if dotfile in self.prodots[profile]:
self.log.err('\"{}\" already present'.format(dotfile.key))
@@ -560,6 +560,7 @@ class Cfg:
self.log.dbg('dotfile attributed key: {}'.format(key))
# adding the new dotfile
dotfile.key = key
dotfile.link = link
if debug:
self.log.dbg('adding new dotfile: {}'.format(dotfile))
# add the entry in the yaml file

View File

@@ -282,7 +282,7 @@ def cmd_importer(opts, conf, paths):
remove(dst)
os.symlink(srcf, dst)
retconf, dotfile = conf.new(dotfile, opts['profile'],
linkit, debug=opts['debug'])
link=linkit, debug=opts['debug'])
if retconf:
LOG.sub('\"{}\" imported'.format(path))
cnt += 1