From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: misc/
Date: Mon, 9 Dec 2019 09:30:10 +0000 (UTC) [thread overview]
Message-ID: <1575883730.fa0f8720e168c95bcd6a8bd57d5abf09c488fd32.zmedico@gentoo> (raw)
commit: fa0f8720e168c95bcd6a8bd57d5abf09c488fd32
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 9 09:26:55 2019 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Dec 9 09:28:50 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=fa0f8720
emerge-delta-webrsync: handle gentoo-YYYYMMDD directory name
Bug: https://bugs.gentoo.org/693454
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
misc/emerge-delta-webrsync | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/misc/emerge-delta-webrsync b/misc/emerge-delta-webrsync
index c5f6fbbd3..cda5a9229 100755
--- a/misc/emerge-delta-webrsync
+++ b/misc/emerge-delta-webrsync
@@ -332,7 +332,7 @@ check_file_signature() {
get_snapshot_timestamp() {
local file="$1"
- do_tar "${file}" --to-stdout -xf - portage/metadata/timestamp.x | cut -f 1 -d " "
+ do_tar "${file}" --to-stdout -f - --wildcards -x '*/metadata/timestamp.x' | cut -f 1 -d " "
}
sync_local() {
@@ -361,23 +361,22 @@ sync_local() {
return 1
fi
else
- if ! do_tar "${file}" xf - -C "${TMPDIR}" ; then
+ if ! do_tar "${file}" -x --strip-components=1 -f - -C "${TMPDIR}" ; then
eecho "tar failed to extract the image. tarball is corrupt? (${file})"
- rm -fr "${TMPDIR}"/portage
+ rm -fr "${TMPDIR}"
return 1
fi
local rsync_opts="${PORTAGE_RSYNC_OPTS} ${PORTAGE_RSYNC_EXTRA_OPTS}"
- if chown ${ownership} "${TMPDIR}"/portage > /dev/null 2>&1; then
- chown -R ${ownership} "${TMPDIR}"/portage
+ if chown ${ownership} "${TMPDIR}" > /dev/null 2>&1; then
+ chown -R ${ownership} "${TMPDIR}"
rsync_opts+=" --owner --group"
fi
- cd "${TMPDIR}"/portage
rsync ${rsync_opts} . "${repo_location%%/}"
cd "${DISTDIR}"
__vecho "Cleaning up ..."
- rm -fr "${TMPDIR}"/portage
+ rm -fr "${TMPDIR}"
fi
if has metadata-transfer ${FEATURES} ; then
next reply other threads:[~2019-12-09 9:30 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-09 9:30 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-29 1:22 [gentoo-commits] proj/portage:master commit in: misc/ Zac Medico
2023-11-11 7:24 Sam James
2023-08-19 15:42 Sam James
2023-08-19 15:03 Sam James
2023-08-19 15:03 Sam James
2023-08-19 13:35 Sam James
2019-12-30 21:36 Zac Medico
2018-07-28 6:20 Zac Medico
2018-07-28 6:12 Zac Medico
2018-02-01 6:18 Zac Medico
2015-11-06 5:31 Zac Medico
2014-10-19 17:19 Zac Medico
2013-07-10 20:16 Zac Medico
2013-06-22 6:14 Zac Medico
2013-06-22 5:54 Zac Medico
2013-01-28 21:45 Zac Medico
2012-09-14 7:26 Zac Medico
2012-08-19 5:44 Zac Medico
2012-08-19 5:21 Zac Medico
2012-08-18 22:51 Zac Medico
2012-08-18 20:51 Zac Medico
2012-08-18 20:32 Zac Medico
2012-08-18 1:45 Zac Medico
2012-08-18 1:28 Zac Medico
2012-08-18 1:28 Zac Medico
2012-08-18 1:28 Zac Medico
2012-08-18 1:28 Zac Medico
2012-08-18 1:28 Zac Medico
2012-08-18 1:28 Zac Medico
2012-08-18 1:28 Zac Medico
2012-08-18 0:09 Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1575883730.fa0f8720e168c95bcd6a8bd57d5abf09c488fd32.zmedico@gentoo \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox