From af0829baf5bfe5679984133655634bf0659f64b0 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Thu, 28 Aug 2014 17:33:59 +0200 Subject: [PATCH] Don't append duplicate files on cmd line multiple times If a file is specified multiple time on the command line, do not append it multiple times. --- sloth/core/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sloth/core/commands.py b/sloth/core/commands.py index 28f6c66..23851c9 100644 --- a/sloth/core/commands.py +++ b/sloth/core/commands.py @@ -123,6 +123,7 @@ class AppendFilesCommand(BaseCommand): else: logger.debug("Adding image file: %s" % rel_filename) item = self.labeltool.addImageFile(rel_filename) + present_filenames.add(rel_filename) if options['unlabeled']: item.setUnlabeled(True)