true -> false, false -> true

This commit is contained in:
S.Çağlar Onur
2006-07-06 11:03:48 +00:00
parent a6175eb1c5
commit b4266fe0ac
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -80,7 +80,7 @@ def check_path_collision(package, pkgList):
# pinfo.path: /usr/share # pinfo.path: /usr/share
# path.path: /usr/share/doc # path.path: /usr/share/doc
if (path.path.endswith(ctx.const.ar_file_suffix) and ctx.get_option('create_static')) or \ if (path.path.endswith(ctx.const.ar_file_suffix) and ctx.get_option('create_static')) or \
(path.path.endswith(ctx.const.debug_file_suffix) and not ctx.config.values.build.generatedebug): (path.path.endswith(ctx.const.debug_file_suffix) and ctx.config.values.build.generatedebug):
# don't throw collision error for these files. # don't throw collision error for these files.
# we'll handle this in gen_files_xml.. # we'll handle this in gen_files_xml..
continue continue
@@ -719,7 +719,7 @@ class Builder:
if obj: if obj:
self.spec.packages.append(obj) self.spec.packages.append(obj)
if not ctx.config.values.build.generatedebug: if ctx.config.values.build.generatedebug:
obj = self.generate_debug_package_object() obj = self.generate_debug_package_object()
if obj: if obj:
self.spec.packages.append(obj) self.spec.packages.append(obj)
+2 -2
View File
@@ -575,14 +575,14 @@ def strip_file(filepath, outpath):
return True return True
elif "SB executable" in o: elif "SB executable" in o:
if not 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)
run_strip(filepath) run_strip(filepath)
return True return True
elif "SB shared object" in o: elif "SB shared object" in o:
if not 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)
run_strip(filepath, "--strip-unneeded") run_strip(filepath, "--strip-unneeded")