Add result output for generate-db command

This commit is contained in:
Jaisen Mathai 2016-12-13 22:26:36 -08:00
parent a82114818f
commit 475fbeb6aa
1 changed files with 2 additions and 0 deletions

View File

@ -135,8 +135,10 @@ def _generate_db(source):
for current_file in all_files:
if os.path.splitext(current_file)[1][1:].lower() not in extensions:
log.info('Skipping invalid file %s' % current_file)
RESULT.append((current_file, None))
continue
RESULT.append((current_file, True))
db.add_hash(db.checksum(current_file), current_file)
db.update_hash_db()