From 3656781e0b80d9bf4e7b8311ab85bcfff67a53f2 Mon Sep 17 00:00:00 2001 From: Chris Nakagaki Date: Tue, 12 Jan 2021 11:42:35 -0500 Subject: [PATCH] Update make_vcsp_2015.py Adding vcsp type file type for a catchall. --- python/make_vcsp_2015.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/make_vcsp_2015.py b/python/make_vcsp_2015.py index 2ce4d5e3..8b311c00 100644 --- a/python/make_vcsp_2015.py +++ b/python/make_vcsp_2015.py @@ -83,7 +83,7 @@ def _make_items(items, version=1): def _dir2item(path, directory, md5_enabled): files_items = [] name = os.path.split(path)[-1] - vcsp_type = "vcsp.iso" + vcsp_type = "vcsp.file" folder = "" folder_md5 = "" for f in os.listdir(path): @@ -103,6 +103,8 @@ def _dir2item(path, directory, md5_enabled): m.update(os.path.dirname(p).encode('utf-8')) if ".ovf" in p: vcsp_type = "vcsp.ovf" + elif ".iso" in p: + vcsp_type = "vcsp.iso" size = os.path.getsize(p) href = "%s/%s" % (directory, f) h = ""