Replace if by elif, fix indentation problem

This commit is contained in:
Ozan Çağlayan
2009-08-17 10:48:16 +00:00
parent ed0f16f46e
commit 1831c400e6
+3 -3
View File
@@ -513,7 +513,7 @@ def strip_file(filepath, fileinfo, outpath):
run_strip(filepath, "--strip-debug") run_strip(filepath, "--strip-debug")
return True return True
""" """
if "SB relocatable" in fileinfo and filepath.endswith(".ko"): if "SB relocatable" in fileinfo and filepath.endswith(".ko"):
# kernel module # kernel module
if ctx.config.values.build.generatedebug: if ctx.config.values.build.generatedebug:
@@ -521,9 +521,9 @@ def strip_file(filepath, fileinfo, outpath):
save_elf_debug(filepath, outpath) save_elf_debug(filepath, outpath)
run_strip(filepath, "--strip-debug") run_strip(filepath, "--strip-debug")
return True return True
""" """
if "SB executable" in fileinfo: elif "SB executable" in fileinfo:
if ctx.config.values.build.generatedebug: if ctx.config.values.build.generatedebug:
check_dir(os.path.dirname(outpath)) check_dir(os.path.dirname(outpath))
save_elf_debug(filepath, outpath) save_elf_debug(filepath, outpath)