aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-03 15:23:28 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-03 15:23:28 +0000
commiteb3de951cff634070ad88260a325118f3889935d (patch)
tree51e0c47bf793e62407579493af33b5a9c979858b
parent9c02ebaf97fee994e5d48f32e79cb64fd1d62f84 (diff)
downloadrpm-setup-eb3de951cff634070ad88260a325118f3889935d.tar
rpm-setup-eb3de951cff634070ad88260a325118f3889935d.tar.gz
rpm-setup-eb3de951cff634070ad88260a325118f3889935d.tar.bz2
rpm-setup-eb3de951cff634070ad88260a325118f3889935d.tar.xz
rpm-setup-eb3de951cff634070ad88260a325118f3889935d.zip
make sure debug files are world-readable
-rwxr-xr-xfind-debuginfo.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/find-debuginfo.sh b/find-debuginfo.sh
index 1ec4a18..637db3b 100755
--- a/find-debuginfo.sh
+++ b/find-debuginfo.sh
@@ -46,6 +46,7 @@ mkdir -p ${RPM_BUILD_ROOT}/usr/src/debug
cat $SOURCEFILE | (cd $RPM_BUILD_DIR; LANG=C sort -z -u | cpio -pd0m ${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 | xargs -0 chmod a+rx
+find ${RPM_BUILD_ROOT}/usr/src/debug -type f -print0 | xargs -0 -r chmod a+r
find ${RPM_BUILD_ROOT}/usr/lib/debug -type f | sed -n -e "s#^$RPM_BUILD_ROOT##p" > $LISTFILE
find ${RPM_BUILD_ROOT}/usr/src/debug -mindepth 1 -maxdepth 1 | sed -n -e "s#^$RPM_BUILD_ROOT##p" >> $LISTFILE