Skip to content

Commit

Permalink
Skip not found files with a warning only
Browse files Browse the repository at this point in the history
  • Loading branch information
wewark committed Feb 13, 2023
1 parent d21b19c commit 94574f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/dnsmasq/validate_dynamic_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def detect_architecture(cwd: pathlib.Path, target_binary: pathlib.Path) -> str:
cwd=cwd)
if len(result.stdout.split(",")) <= 1:
# File not found
print("file %s not found" % target_binary)
return ""
return result.stdout.split(",")[1].strip()

Expand Down Expand Up @@ -135,6 +136,9 @@ def main(image_ref: str, target_binary: str, clean=True):
dep_path = resolve_container_link(output_dir, dep_path)

dep_arch = detect_architecture(output_dir, dep_path)
if dep_arch == "":
# Dependency not found
continue

if dep_arch != target_binary_arch:
wrong_arch[dep_path] = dep_arch
Expand Down

0 comments on commit 94574f3

Please sign in to comment.