Filter md5sum files from the list of images

This commit is contained in:
Julien Duponchelle committed 2016-08-18 19:26:17 +02:00
1 parent 2842904769
commit 7777407c4b
2 files changed
+7 -1

No files matched your search

+3 -1
View File
@@ -40,7 +40,9 @@ def scan_for_images(type):
for file in filenames:
path = os.path.join(root, file)
if file not in files:
if (file.endswith(".image") and type == "dynamips") \
if file.endswith(".md5sum"):
continue
elif (file.endswith(".image") and type == "dynamips") \
or (file.endswith(".bin") and type == "iou") \
or (not file.endswith(".bin") and not file.endswith(".image") and type == "qemu"):
files.add(file)