Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r12081 - main/trunk
Date: Mon, 24 Nov 2008 05:09:47
Message-Id: E1L4Thg-0005xd-NI@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-11-24 05:09:44 +0000 (Mon, 24 Nov 2008)
3 New Revision: 12081
4
5 Modified:
6 main/trunk/mkrelease.sh
7 Log:
8 Use tar options to make files owned in release tarballs owned by
9 portage:portage instead of the current user.
10
11
12 Modified: main/trunk/mkrelease.sh
13 ===================================================================
14 --- main/trunk/mkrelease.sh 2008-11-24 03:41:45 UTC (rev 12080)
15 +++ main/trunk/mkrelease.sh 2008-11-24 05:09:44 UTC (rev 12081)
16 @@ -79,7 +79,8 @@
17 cd "${RELEASE_BUILDDIR}"
18
19 echo ">>> Creating release tarball ${RELEASE_TARBALL}"
20 -tar cfj "${RELEASE_TARBALL}" "${RELEASE}" || die "tarball creation failed"
21 +tar --owner portage --group portage -cjf "${RELEASE_TARBALL}" "${RELEASE}" || \
22 + die "tarball creation failed"
23
24 DISTDIR=$(portageq distdir)
25 if [ -n "${DISTDIR}" -a -d "${DISTDIR}" -a -w "${DISTDIR}" ]; then