summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-01-13 08:06:20 -0800
committerZac Medico <zmedico@gentoo.org>2012-01-13 08:06:20 -0800
commit9ea603a611ddf4a8575ba73edc63b85213d7e701 (patch)
tree1a28e3f974d34c37f138ca7f4b9d53e2ff1945d7 /bin/misc-functions.sh
parent850931b76f62509df1b55ff3f4151393da0b3807 (diff)
downloadportage-9ea603a611ddf4a8575ba73edc63b85213d7e701.tar.gz
portage-9ea603a611ddf4a8575ba73edc63b85213d7e701.tar.bz2
portage-9ea603a611ddf4a8575ba73edc63b85213d7e701.zip
dyn_package: portable cp args by Mike Frysinger
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-xbin/misc-functions.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 6094fb7f0..431e89f32 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -1108,7 +1108,9 @@ dyn_package() {
# make a temporary copy of ${D} so that any modifications we do that
# are binpkg specific, do not influence the actual installed image.
rm -rf "${PROOT}" || die "failed removing stale package tree"
- cp -la "${PORTAGE_BUILDDIR}/image" "${PROOT}" || die "failed creating packaging tree"
+ cp -pPR $(cp --help | grep -qs -e-l && echo -l) \
+ "${PORTAGE_BUILDDIR}/image" "${PROOT}" \
+ || die "failed creating packaging tree"
install_mask "${PROOT}" "${PKG_INSTALL_MASK}"