summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2020-03-04 09:41:24 +0300
committerSlava Barinov <v.barinov@samsung.com>2020-03-04 09:41:24 +0300
commit6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6 (patch)
tree3bf69247aea90deed2eec53781cc68b77562aef2
parentb9f36ab5c6a91132b78c261b645efd279b90d61f (diff)
downloadrpm-6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6.tar.gz
rpm-6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6.tar.bz2
rpm-6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6.zip
This removes errors like cpio: glibc-2.24/csu: Cannot stat: No such file or directory Change-Id: Ib1a710b72a44be4bc5fd2e6871ef277c66068149 Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rwxr-xr-xscripts/find-debuginfo.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index e4fffe4b5..f2cc8b8f8 100755
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -384,7 +384,11 @@ done || exit
if [ -s "$SOURCEFILE" ]; then
mkdir -p "${RPM_BUILD_ROOT}/usr/src/debug"
+ # Get package name from directory and then filter out all files not
+ # starting with this name
+ pn=$(basename "$BUILDDIR")
LC_ALL=C sort -z -u "$SOURCEFILE" | grep -E -v -z '(<internal>|<built-in>)$' |
+ grep -E -z "^${pn}" |
(cd "$RPM_BUILD_DIR"; cpio -pd0mL "${RPM_BUILD_ROOT}/usr/src/debug")
# stupid cpio creates new directories in mode 0700, fixup
find "${RPM_BUILD_ROOT}/usr/src/debug" -type d -print0 |