diff options
author | Michael Palimaka <kensington@gentoo.org> | 2017-12-29 00:25:14 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2017-12-29 00:43:34 +1100 |
commit | 625e074aaefea951864d94a2150278af0677b5e0 (patch) | |
tree | 49e9c73e31a68a598f69c881a877e70b62bd50cf | |
parent | www-client/falkon: Add missing RDEPEND on dev-qt/qtsvg:5 (diff) | |
download | kde-625e074a.tar.gz kde-625e074a.tar.bz2 kde-625e074a.zip |
Documentation: be more pythonic
-rwxr-xr-x | Documentation/maintainers/cmake_dep_check.py (renamed from Documentation/maintainers/cmake-dep-check.py) | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/maintainers/cmake-dep-check.py b/Documentation/maintainers/cmake_dep_check.py index 09ba701756..074c06e8be 100755 --- a/Documentation/maintainers/cmake-dep-check.py +++ b/Documentation/maintainers/cmake_dep_check.py @@ -324,8 +324,8 @@ def getMapping(package): return 'ERROR: could not find a mapping for ' + package -def main(): - cmakeFiles = findCmakeFiles('.') +def getDeps(path): + cmakeFiles = findCmakeFiles(path) mappings = {} for file in cmakeFiles: @@ -338,6 +338,11 @@ def main(): mappings[file].append(getMapping(package[0] + component)) else: mappings[file].append(getMapping(package[0])) + + return mappings + +def main(): + mappings = getDeps('.') for key, value in mappings.items(): if len(value) >= 1: for package in sorted(set(value)): |