mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Filter md5sum files from the list of images
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user