summaryrefslogtreecommitdiff
path: root/init_buildsystem
diff options
context:
space:
mode:
authoryang.zhang <y0169.zhang@samsung.com>2016-03-16 17:33:37 +0800
committeryang.zhang <y0169.zhang@samsung.com>2016-03-16 17:34:00 +0800
commit21a9a476339e3ff7dd1e1026a6d454d298515bc4 (patch)
tree851706abdcbe89517080dac22f081dc636e7272d /init_buildsystem
parent3d037309e5dc210de12c92657d69929524121658 (diff)
downloadbuild-21a9a476339e3ff7dd1e1026a6d454d298515bc4.tar.gz
build-21a9a476339e3ff7dd1e1026a6d454d298515bc4.tar.bz2
build-21a9a476339e3ff7dd1e1026a6d454d298515bc4.zip
fix cpio introduce symlinks checking function
Change-Id: I17fe90f5b25a726c274c7b8e56510e1b14d5d9dc
Diffstat (limited to 'init_buildsystem')
-rwxr-xr-xinit_buildsystem1
1 files changed, 1 insertions, 0 deletions
diff --git a/init_buildsystem b/init_buildsystem
index 4ceffda..6e83266 100755
--- a/init_buildsystem
+++ b/init_buildsystem
@@ -195,6 +195,7 @@ preinstall()
else
unsafe_preinstall_check
CPIO="cpio --extract --unconditional --preserve-modification-time --make-directories --no-absolute-filenames --quiet"
+ cpio --help 2>/dev/null | grep -q -e --extract-over-symlinks && CPIO="$CPIO --extract-over-symlinks"
TAR="tar -x"
fi
if test -e "$BUILD_ROOT/.init_b_cache/rpms/$1.rpm" ; then