From 9ea603a611ddf4a8575ba73edc63b85213d7e701 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 13 Jan 2012 08:06:20 -0800 Subject: dyn_package: portable cp args by Mike Frysinger --- bin/misc-functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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}" -- cgit v1.2.3-1-g7c22