From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: cnf/
Date: Mon, 21 Oct 2019 18:07:45 +0000 (UTC) [thread overview]
Message-ID: <1571681260.03c54e340073620f489ca85bca94267a198174fe.mgorny@gentoo> (raw)
commit: 03c54e340073620f489ca85bca94267a198174fe
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 21 14:59:43 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 21 18:07:40 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=03c54e34
make.globals: Change FETCHCOMMAND_RSYNC to --copy-links
Change FETCHCOMMAND_RSYNC to use '-Lt' over '-a'. Notably, this
replaces --links with --copy-links option, i.e. makes rsync copy
underlying files when symlinks are met. This is important since
we do not transfer symlink targets, therefore '-l' ends up creating
dangling symlinks.
This also removes most of the other options that are irrelevant or even
undesirable to distfile fetching, that is:
- '-r' since we always fetch a single file, so recursive operation is
unnecessary
- '-p', '-o', '-g' since we want to apply our permissions and ownership
for distfiles rather than copying the one from mirrors,
- '-D' since we do not expect any devices or specials in distfiles.
Copying timestamps is preserved in case it's helpful in determining
whether files need to be refetched.
Bug: https://bugs.gentoo.org/698046
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
cnf/make.globals | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cnf/make.globals b/cnf/make.globals
index 9eeb7a01e..50511e812 100644
--- a/cnf/make.globals
+++ b/cnf/make.globals
@@ -38,8 +38,8 @@ PORTAGE_TMPDIR="/var/tmp"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
-FETCHCOMMAND_RSYNC="rsync -avP \"\${URI}\" \"\${DISTDIR}/\${FILE}\""
-RESUMECOMMAND_RSYNC="rsync -avP \"\${URI}\" \"\${DISTDIR}/\${FILE}\""
+FETCHCOMMAND_RSYNC="rsync -LtvP \"\${URI}\" \"\${DISTDIR}/\${FILE}\""
+RESUMECOMMAND_RSYNC="rsync -LtvP \"\${URI}\" \"\${DISTDIR}/\${FILE}\""
# NOTE: rsync will evaluate quotes embedded inside PORTAGE_SSH_OPTS
FETCHCOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port= ; exec rsync --rsh=\\\"ssh \\\${port:+-p\\\${port}} \\\${3}\\\" -avP \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\" \"\${PORTAGE_SSH_OPTS}\""
next reply other threads:[~2019-10-21 18:07 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-21 18:07 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-11 23:10 [gentoo-commits] proj/portage:master commit in: cnf/ Zac Medico
2025-01-11 18:56 Zac Medico
2023-12-10 22:59 Sam James
2023-10-13 10:19 Sam James
2023-08-03 21:15 Sam James
2023-08-03 21:15 Sam James
2022-04-11 20:17 Mike Gilbert
2022-02-06 19:19 Zac Medico
2021-11-16 21:17 Zac Medico
2020-05-03 20:32 Zac Medico
2019-09-26 0:03 Zac Medico
2019-07-05 5:39 Michał Górny
2019-04-19 5:16 Zac Medico
2018-12-12 18:41 Michał Górny
2018-08-12 10:05 Zac Medico
2018-07-11 18:01 Zac Medico
2018-05-11 7:48 Michał Górny
2017-12-11 2:27 Zac Medico
2017-08-02 8:06 Michał Górny
2017-01-06 22:13 Brian Dolbec
2017-01-06 18:00 Brian Dolbec
2017-01-06 18:00 Brian Dolbec
2015-12-15 8:40 Brian Dolbec
2015-03-10 17:53 Zac Medico
2014-11-02 3:02 Zac Medico
2013-07-25 22:00 Zac Medico
2013-05-10 4:09 Zac Medico
2013-01-21 16:52 Zac Medico
2013-01-21 16:48 Zac Medico
2012-11-05 8:52 Zac Medico
2012-09-06 20:06 Zac Medico
2012-08-17 21:36 Zac Medico
2012-08-05 8:13 Zac Medico
2012-07-23 17:45 Zac Medico
2012-07-09 21:03 Zac Medico
2012-07-06 6:43 Zac Medico
2012-05-05 16:41 Zac Medico
2011-12-22 4:30 Zac Medico
2011-12-22 4:22 Zac Medico
2011-12-21 21:45 Zac Medico
2011-11-11 21:23 Zac Medico
2011-08-26 3:52 Zac Medico
2011-06-03 5:24 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=1571681260.03c54e340073620f489ca85bca94267a198174fe.mgorny@gentoo \
--to=mgorny@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