1 |
W. Trevor King posted on Mon, 15 Sep 2014 13:33:46 -0700 as excerpted: |
2 |
|
3 |
> On Mon, Sep 15, 2014 at 01:29:44PM -0700, W. Trevor King wrote: |
4 |
>> I don't see any benefit to using rsync vs. a shallow clone as the |
5 |
>> transmission protocol. |
6 |
> |
7 |
> Other than the fact that before you dropped it you'd need to push a |
8 |
> ‘emerge sync’ that could handle either rsync or Git, stabilize that |
9 |
> Portage, and then wait for folks to adopt it. |
10 |
|
11 |
Portage already handles it. =:^) |
12 |
|
13 |
Quoting from the emerge (1) manpage (listed as v2.2.12, dated Mar 2014): |
14 |
|
15 |
--sync |
16 |
Updates repositories, for which sync-type and sync-uri |
17 |
attributes are set in repos.conf. See portage(5) for more |
18 |
information. |
19 |
|
20 |
|
21 |
Then in the portage (5) manpage: |
22 |
|
23 |
repos.conf |
24 |
Specifies site-specific repository configuration information. |
25 |
Configuration specified in repos.conf can be overriden by |
26 |
PORTAGE_REPOSITORIES environmental variable, which has the |
27 |
same format as repos.conf. |
28 |
|
29 |
[...] |
30 |
|
31 |
Attributes supported in sections of repositories: |
32 |
|
33 |
[...] |
34 |
|
35 |
sync-type |
36 |
Specifies type of synchronization performed by `emerge |
37 |
--sync`. Valid non-empty values: cvs, git, rsync |
38 |
This attribute can be set to empty value to disable |
39 |
synchronization of given repository. Empty value is |
40 |
default. |
41 |
|
42 |
sync-uri |
43 |
Specifies URI of repository used for synchronization |
44 |
performed by `emerge --sync`. This attribute can be |
45 |
set to empty value to disable synchronization of given |
46 |
repository. Empty value is default. |
47 |
|
48 |
Syntax: |
49 |
cvs: [cvs://]:access_method:[username@]hostname[:port]:/path |
50 |
git: (git|git+ssh|http|https)://[username@]hostname[:port]/path |
51 |
rsync: (rsync|ssh)://[username@]hostname[:port]/(module|path) |
52 |
|
53 |
|
54 |
So portage already handles it. =:^) |
55 |
|
56 |
Tho it's possible there are still bugs as surely that doesn't have the |
57 |
extremely broad long-term testing that rsync does, and I'm ~arch of |
58 |
course and don't know if that's stable, yet. But it's there. |
59 |
|
60 |
|
61 |
-- |
62 |
Duncan - List replies preferred. No HTML msgs. |
63 |
"Every nonfree program has a lord, a master -- |
64 |
and if you use the program, he is your master." Richard Stallman |