From 0b6098f8b88d8d83b6cbfde6a6c2783b1f798171 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 2 Feb 2019 22:09:23 +0100 Subject: [PATCH] print link status --- dotdrop/dotdrop.py | 2 +- dotdrop/dotfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index c3bc076..c1266e0 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -332,7 +332,7 @@ def cmd_list_files(opts, conf, templateonly=False): if not Templategen.is_template(src): continue LOG.log('{} (src: \"{}\", link: {})'.format(dotfile.key, dotfile.src, - dotfile.link)) + dotfile.link.name.lower())) LOG.sub('{}'.format(dotfile.dst)) LOG.log('') diff --git a/dotdrop/dotfile.py b/dotdrop/dotfile.py index bf82146..c9a17f5 100644 --- a/dotdrop/dotfile.py +++ b/dotdrop/dotfile.py @@ -37,7 +37,7 @@ class Dotfile: def __str__(self): msg = 'key:\"{}\", src:\"{}\", dst:\"{}\", link:\"{}\"' - return msg.format(self.key, self.src, self.dst, self.link.name) + return msg.format(self.key, self.src, self.dst, self.link.name.lower()) def __eq__(self, other): return self.__dict__ == other.__dict__