Message ID | 20250930080055.1164699-1-changqing.li@windriver.com |
---|---|
State | Accepted, archived |
Commit | 8898f97b4acc9d5c2c6583c91d05327f9093133e |
Headers | show |
Series | package.py: replace all files unconditionally when copy debug sources | expand |
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index ce69151e5d..baaa0cba02 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py @@ -1016,7 +1016,7 @@ def copydebugsources(debugsrcdir, sources, d): cmd += "fgrep -zw '%s' | " % prefixmap[pmap] # Remove prefix in the source paths cmd += "sed 's#%s/##g' | " % (prefixmap[pmap]) - cmd += "(cd '%s' ; cpio -pd0mlL --no-preserve-owner '%s%s' 2>/dev/null)" % (pmap, dvar, prefixmap[pmap]) + cmd += "(cd '%s' ; cpio -pd0mlLu --no-preserve-owner '%s%s' 2>/dev/null)" % (pmap, dvar, prefixmap[pmap]) try: subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)