projects
/
web
/
firmware-selector-openwrt-org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a169e
)
misc/collect.py: fixup type change of variable profiles
author
Moritz Warning
<moritzwarning@web.de>
Wed, 23 Sep 2020 18:44:08 +0000
(20:44 +0200)
committer
Moritz 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
patch
|
blob
|
history
diff --git
a/misc/collect.py
b/misc/collect.py
index 527d27a5bfe7a2e2e85e1a340bf3b17e7ddebb47..ad2741370c5f546b311230e642ad704e41c3f64e 100755
(executable)
--- 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