Add back the -v option for tar (removed for bug #151146) in dyn_package(), but don...
authorZac Medico <zmedico@gentoo.org>
Tue, 17 Oct 2006 10:21:39 +0000 (10:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 17 Oct 2006 10:21:39 +0000 (10:21 -0000)
svn path=/main/trunk/; revision=4737

bin/misc-functions.sh

index b9205ded95c07129c80659a846327ddf75077ec3..9ae010e4d4c2033f245e84dbfeee09a39478e76a 100755 (executable)
@@ -354,10 +354,13 @@ dyn_package() {
        install_mask "${PORTAGE_BUILDDIR}/image" ${PKG_INSTALL_MASK}
        local pkg_dest="${PKGDIR}/All/${PF}.tbz2"
        local pkg_tmp="${PKGDIR}/All/${PF}.tbz2.$$"
+       local tar_options=""
+       [ "${PORTAGE_QUIET}" == "1" ] ||  tar_options="${tar_options} -v"
        # Sandbox is disabled in case the user wants to use a symlink
        # for $PKGDIR and/or $PKGDIR/All.
        export SANDBOX_ON="0"
-       tar -cf - . | bzip2 -f > "${pkg_tmp}" || die "Failed to create tarball"
+       tar ${tar_options} -cf - . | bzip2 -f > "${pkg_tmp}" || \
+               die "Failed to create tarball"
        cd ..
        export PYTHONPATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
        python -c "import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')"