|
|
|
@ -40,11 +40,11 @@ def scan_for_images(type):
|
|
|
|
|
for file in filenames:
|
|
|
|
|
path = os.path.join(root, file)
|
|
|
|
|
if file not in files:
|
|
|
|
|
if file.endswith(".md5sum"):
|
|
|
|
|
if file.endswith(".md5sum") or file.startswith("."):
|
|
|
|
|
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"):
|
|
|
|
|
or (file.endswith(".bin") and type == "iou") \
|
|
|
|
|
or (not file.endswith(".bin") and not file.endswith(".image") and type == "qemu"):
|
|
|
|
|
files.add(file)
|
|
|
|
|
paths.append(path)
|
|
|
|
|
return paths
|
|
|
|
|