diff --git a/pisi/build.py b/pisi/build.py index a78cb6ce..fbf6e9d3 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -80,7 +80,7 @@ def check_path_collision(package, pkgList): # pinfo.path: /usr/share # path.path: /usr/share/doc 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. # we'll handle this in gen_files_xml.. continue @@ -719,7 +719,7 @@ class Builder: if 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() if obj: self.spec.packages.append(obj) diff --git a/pisi/util.py b/pisi/util.py index d9a35119..c7bbab96 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -575,14 +575,14 @@ def strip_file(filepath, outpath): return True elif "SB executable" in o: - if not ctx.config.values.build.generatedebug: + if ctx.config.values.build.generatedebug: check_dir(os.path.dirname(outpath)) save_elf_debug(filepath, outpath) run_strip(filepath) return True 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)) save_elf_debug(filepath, outpath) run_strip(filepath, "--strip-unneeded")