Add result output for generate-db command
This commit is contained in:
parent
a82114818f
commit
475fbeb6aa
|
@ -135,8 +135,10 @@ def _generate_db(source):
|
||||||
for current_file in all_files:
|
for current_file in all_files:
|
||||||
if os.path.splitext(current_file)[1][1:].lower() not in extensions:
|
if os.path.splitext(current_file)[1][1:].lower() not in extensions:
|
||||||
log.info('Skipping invalid file %s' % current_file)
|
log.info('Skipping invalid file %s' % current_file)
|
||||||
|
RESULT.append((current_file, None))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
RESULT.append((current_file, True))
|
||||||
db.add_hash(db.checksum(current_file), current_file)
|
db.add_hash(db.checksum(current_file), current_file)
|
||||||
|
|
||||||
db.update_hash_db()
|
db.update_hash_db()
|
||||||
|
|
Loading…
Reference in New Issue