From a1cd19f1a9f7c3241e5bd14e403e8d4d5d5f01ce Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Wed, 23 Sep 2020 20:44:08 +0200 Subject: [PATCH] misc/collect.py: fixup type change of variable profiles The type of the profiles variable changed from dict to list. --- misc/collect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/collect.py b/misc/collect.py index 527d27a..ad27413 100755 --- a/misc/collect.py +++ b/misc/collect.py @@ -341,7 +341,8 @@ def scan(args): # release => base path (of profiles.json locations) paths = {} for release, profiles in releases.items(): - paths[release] = os.path.commonpath(profiles.keys()) + profile_paths = [profile["file_path"] for profile in profiles] + paths[release] = os.path.commonpath(profile_paths) # base path of all releases release_path_base = os.path.commonpath(paths.values()) # get path intersection -- 2.30.2