Use tar options to make files owned in release tarballs owned by
authorZac Medico <zmedico@gentoo.org>
Mon, 24 Nov 2008 06:51:43 +0000 (06:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 24 Nov 2008 06:51:43 +0000 (06:51 -0000)
portage:portage instead of the current user. (trunk r12081)

svn path=/main/branches/2.1.6/; revision=12084

mkrelease.sh

index 93d22da0079fe5f9de3b86537fb1c120772752aa..ed7c383e314820fcc72c054c967f65c621346ea0 100755 (executable)
@@ -79,7 +79,8 @@ cp "${SOURCE_DIR}/"{ChangeLog,DEVELOPING,NEWS,RELEASE-NOTES,TEST-NOTES} \
 cd "${RELEASE_BUILDDIR}"
 
 echo ">>> Creating release tarball ${RELEASE_TARBALL}"
-tar cfj "${RELEASE_TARBALL}" "${RELEASE}" || die "tarball creation failed"
+tar --owner portage --group portage -cjf "${RELEASE_TARBALL}" "${RELEASE}" || \
+       die "tarball creation failed"
 
 DISTDIR=$(portageq distdir)
 if [ -n "${DISTDIR}" -a -d "${DISTDIR}" -a -w "${DISTDIR}" ]; then