Finalize verified 2720 Flip release source and untrack image outputs

This commit is contained in:
Luxferre committed 2026-11-09 23:04:13 +02:00
1 parent 2a3078e42c
commit 1c011b360a
121 files changed
+8467 -686

No files matched your search

+16 -1
View File
@@ -46,6 +46,14 @@ def regular_files(root):
return result
def is_elf(path):
try:
with open(path, "rb") as handle:
return handle.read(4) == b"\x7fELF"
except OSError:
return False
by_name = {}
for path in regular_files(prebuilt_root):
by_name.setdefault(os.path.basename(path), []).append(path)
@@ -62,7 +70,14 @@ for target in regular_files(overlay_root):
source = candidate
break
if source is None and candidates:
source = candidates[0]
bin_dir = os.path.join(overlay_root, "usr", "bin") + os.sep
local_bin_dir = os.path.join(overlay_root, "usr", "local", "bin") + os.sep
for candidate in candidates:
if is_elf(candidate) and not target.startswith(bin_dir) and \
not target.startswith(local_bin_dir):
continue
source = candidate
break
if source is None:
continue
matched += 1