From 36709d22a9cb7c46e7fb48a2c96a6d788e9e6489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Mon, 10 Aug 2009 10:36:32 +0000 Subject: [PATCH] Use long format for a readable code, don't forget strip-debug for kernel modules as they won't be loadable at all --- pisi/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/util.py b/pisi/util.py index 939050d0..2809a4ff 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -507,7 +507,7 @@ def strip_file(filepath, fileinfo, outpath): ctx.ui.warning(_("objcopy (add-debuglink) command failed for file '%s'!") % f) if "current ar archive" in fileinfo: - run_strip(filepath, "-g") + run_strip(filepath, "--strip-debug") return True if "SB relocatable" in fileinfo and filepath.endswith(".ko"): @@ -515,7 +515,7 @@ def strip_file(filepath, fileinfo, outpath): if ctx.config.values.build.generatedebug: check_dir(os.path.dirname(outpath)) save_elf_debug(filepath, outpath) - run_strip(filepath) + run_strip(filepath, "--strip-debug") return True elif "SB executable" in fileinfo: