Replace if by elif, fix indentation problem
This commit is contained in:
+3
-3
@@ -513,7 +513,7 @@ def strip_file(filepath, fileinfo, outpath):
|
||||
run_strip(filepath, "--strip-debug")
|
||||
return True
|
||||
|
||||
"""
|
||||
"""
|
||||
if "SB relocatable" in fileinfo and filepath.endswith(".ko"):
|
||||
# kernel module
|
||||
if ctx.config.values.build.generatedebug:
|
||||
@@ -521,9 +521,9 @@ def strip_file(filepath, fileinfo, outpath):
|
||||
save_elf_debug(filepath, outpath)
|
||||
run_strip(filepath, "--strip-debug")
|
||||
return True
|
||||
"""
|
||||
"""
|
||||
|
||||
if "SB executable" in fileinfo:
|
||||
elif "SB executable" in fileinfo:
|
||||
if ctx.config.values.build.generatedebug:
|
||||
check_dir(os.path.dirname(outpath))
|
||||
save_elf_debug(filepath, outpath)
|
||||
|
||||
Reference in New Issue
Block a user