misc/collect.py: fixup type change of variable profiles
authorMoritz Warning <moritzwarning@web.de>
Wed, 23 Sep 2020 18:44:08 +0000 (20:44 +0200)
committerMoritz Warning <moritzwarning@web.de>
Wed, 23 Sep 2020 18:48:58 +0000 (20:48 +0200)
The type of the profiles variable changed from dict to list.

misc/collect.py

index 527d27a5bfe7a2e2e85e1a340bf3b17e7ddebb47..ad2741370c5f546b311230e642ad704e41c3f64e 100755 (executable)
@@ -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