]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Replace undefined 'src' with valid variable
authorKhem Raj <raj.khem@gmail.com>
Wed, 6 Feb 2013 21:54:31 +0000 (13:54 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Feb 2013 23:24:11 +0000 (23:24 +0000)
After rewrite of split_and_strip_files src var is no longer
available here where it is used so we should replace it with
a valid value

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index 69a4924ebbaf789a45b504305a96524adef2f431..b10e6f6a4aa78d3afe5a752a04a0ca122e7f4b50 100644 (file)
@@ -766,7 +766,7 @@ python split_and_strip_files () {
                     elf_file = isELF(file)
                     if elf_file & 1:
                         if elf_file & 2:
-                            bb.warn("File '%s' from %s was already stripped, this will prevent future debugging!" % (src, pn))
+                            bb.warn("File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn))
                             continue
                         # Check if it's a hard link to something else
                         if s.st_nlink > 1: