diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-01-13 08:06:20 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-01-13 08:06:20 -0800 |
commit | 9ea603a611ddf4a8575ba73edc63b85213d7e701 (patch) | |
tree | 1a28e3f974d34c37f138ca7f4b9d53e2ff1945d7 | |
parent | 850931b76f62509df1b55ff3f4151393da0b3807 (diff) | |
download | portage-9ea603a611ddf4a8575ba73edc63b85213d7e701.tar.gz portage-9ea603a611ddf4a8575ba73edc63b85213d7e701.tar.bz2 portage-9ea603a611ddf4a8575ba73edc63b85213d7e701.zip |
dyn_package: portable cp args by Mike Frysinger
-rwxr-xr-x | bin/misc-functions.sh | 4 |
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}" |