mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Show all unused scanner path at once
This commit is contained in:
parent
abd9faf275
commit
cf7eb913d9
1 changed files with 7 additions and 1 deletions
|
@ -2445,13 +2445,19 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
||||||
def getpaths_map(build_dir, globpaths):
|
def getpaths_map(build_dir, globpaths):
|
||||||
"""Extend via globbing the paths from a field and return them as a map from original path to resulting paths."""
|
"""Extend via globbing the paths from a field and return them as a map from original path to resulting paths."""
|
||||||
paths = dict()
|
paths = dict()
|
||||||
|
not_found_paths = []
|
||||||
for p in globpaths:
|
for p in globpaths:
|
||||||
p = p.strip()
|
p = p.strip()
|
||||||
full_path = os.path.join(build_dir, p)
|
full_path = os.path.join(build_dir, p)
|
||||||
full_path = os.path.normpath(full_path)
|
full_path = os.path.normpath(full_path)
|
||||||
paths[p] = [r[len(build_dir) + 1:] for r in glob.glob(full_path)]
|
paths[p] = [r[len(build_dir) + 1:] for r in glob.glob(full_path)]
|
||||||
if not paths[p]:
|
if not paths[p]:
|
||||||
raise FDroidException("glob path '%s' did not match any files/dirs" % p)
|
not_found_paths.append(p)
|
||||||
|
if not_found_paths:
|
||||||
|
raise FDroidException(
|
||||||
|
"Some glob paths did not match any files/dirs:\n"
|
||||||
|
+ "\n".join(not_found_paths)
|
||||||
|
)
|
||||||
return paths
|
return paths
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue