Skip to content

Commit f10095d

Browse files
authored
Merge pull request ubuntu#278 from lissyx/gnome-42-2204_sdk_fix_debugsyms
Skip generated .debug files from extracting/stripping again
2 parents c007fa7 + ebe3ced commit f10095d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/strip_binaries.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ def generate_version(part_src_dir = None) -> str:
125125
debugpath = os.path.join(debugroot, buildid[:2])
126126
debugname = os.path.join(debugpath, f"{buildid[2:]}.debug")
127127

128+
if os.path.exists(debugname):
129+
print(f"Debug symbols file {debugname} already exists, skipping.")
130+
continue
131+
128132
print(f"Extracting symbols from {fullpath} into {debugname}")
129133
try:
130134
os.makedirs(debugpath)

0 commit comments

Comments
 (0)