From: Zac Medico Date: Fri, 13 Jan 2012 14:14:12 +0000 (-0800) Subject: dyn_package: remove stale PROOT if necessary X-Git-Tag: v2.2.0_alpha85~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=850931b76f62509df1b55ff3f4151393da0b3807;p=portage.git dyn_package: remove stale PROOT if necessary --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index df0493bbe..6094fb7f0 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -1107,6 +1107,7 @@ dyn_package() { local PROOT="${T}/packaging" # 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" install_mask "${PROOT}" "${PKG_INSTALL_MASK}"