Summary: | use new PORTAGE_RSYNC_OPTS variable instead of hardcoded defaults | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Marius Mauch (RETIRED) <genone> |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | gentoo, infra-bugs |
Priority: | High | Keywords: | InVCS |
Version: | 2.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 115839 | ||
Attachments: |
Patch to add PORTAGE_RSYNC_OPTS support
Updated patch always appending --exclude stuff and adding PORTAGE_RSYNC_EXTRA_OPTS |
Description
Marius Mauch (RETIRED)
2006-02-16 01:51:51 UTC
Created attachment 79915 [details, diff]
Patch to add PORTAGE_RSYNC_OPTS support
Looks good but please keep the --exclude= enforced all the time. I think the chances for mistakes to happen here to are to large. For example I use official mirrors to sync with but none of those are named *.gentoo.org. They come in the form of (IP addresses || FQDN's) (In reply to comment #2) > Looks good but please keep the --exclude= enforced all the time. > > I think the chances for mistakes to happen here to are to large. > For example I use official mirrors to sync with but none of those > are named *.gentoo.org. They come in the form of (IP addresses || FQDN's) Hmm, might do that if --exclude can be overridden with a later --include, reason for not having done so yet is that I've seen at least one comment in the past where someone wanted to include packages and/or distfiles in --sync (local mirror). I agree that it would probably be one of the bigger sources for errors. Created attachment 80151 [details, diff]
Updated patch always appending --exclude stuff and adding PORTAGE_RSYNC_EXTRA_OPTS
Ok, --exclude=foo can be overridden by clearing the exclude pattern list with --exclude=!, so --exclude=/{distfiles,local,packages} are now always enforced.
(In reply to comment #2) > Looks good but please keep the --exclude= enforced all the time. Btw, was that an official OK from infra or just your personal opinion? Well I was commenting on the code as it looked rather interesting to me, and similer to hacks I've done in the past but yours is cleaner and more complete. I asked infra. Mainly the only one I could of seen having any effect infra wise would of been the --compress option. but... <cshields> solar: many rsync server have (or should have) compression turned off which would trump the client <solar> if that is the case then the patch seems good to me from all POVs <solar> anything you see there that would be a concern? <cshields> not right now, but I'm still waking up sounds fine. </official infra stance> *** Bug 128413 has been marked as a duplicate of this bug. *** Released in 2.1_pre7. |