From: Moritz Warning Date: Wed, 23 Sep 2020 18:44:08 +0000 (+0200) Subject: misc/collect.py: fixup type change of variable profiles X-Git-Tag: v3.0.3~4 X-Git-Url: http://git.openwrt.org/project/luci.git;master?a=commitdiff_plain;h=a1cd19f1a9f7c3241e5bd14e403e8d4d5d5f01ce;p=web%2Ffirmware-selector-openwrt-org.git misc/collect.py: fixup type change of variable profiles The type of the profiles variable changed from dict to list. --- 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