View previous topic :: View next topic |
Author |
Message |
ClippyHater Apprentice
Joined: 06 Nov 2002 Posts: 247 Location: Wisconsin
|
Posted: Wed Nov 06, 2002 3:09 am Post subject: What's diff between 'emerge sync' and 'emerge rsync'? |
|
|
The install doc says 'emerge sync', but then I see 'emerge rsync' everywhere else... something to do with using 1.4 RC1, or do they do different things and I should be using '...rsync' now that my box has Gentoo on it? |
|
Back to top |
|
|
handsomepete Guru
Joined: 21 Apr 2002 Posts: 548 Location: Kansas City, MO
|
Posted: Wed Nov 06, 2002 3:16 am Post subject: |
|
|
I believe 'emerge sync' is deprecated now and probably should be removed from the docs. At least as far as I know. |
|
Back to top |
|
|
phong Bodhisattva
Joined: 16 Jul 2002 Posts: 778 Location: Michigan - 15 & Ryan
|
Posted: Wed Nov 06, 2002 3:21 am Post subject: |
|
|
They used to be different (emerge sync, IIRC did something with CVS) - but now they are synonymous. _________________ "An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer |
|
Back to top |
|
|
eminency n00b
Joined: 27 Aug 2002 Posts: 21 Location: Korea
|
Posted: Wed Nov 06, 2002 6:04 am Post subject: They are same, aren't them? |
|
|
I think those two actions are same.
See emerge.py :
Code: |
if myaction in ["sync","rsync"] and (not "--help" in myopts):
if "--pretend" in myopts:
print "emerge: the \"sync\" and \"rsync\" actions do not support \"--pretend.\""
sys.exit(1)
......
|
As see "myaction in ["sync","rsync"]", because code for 'sync' and 'rsync' is same, I think they're not different. _________________ May the force be with you |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Nov 06, 2002 6:33 am Post subject: |
|
|
handsomepete wrote: | I believe 'emerge sync' is deprecated now and probably should be removed from the docs. At least as far as I know. |
Do you have a reference for this? I have no information one way or the other, but I would guess that of the two, 'emerge rsync' would be deprecated in favor of 'emerge sync', because 'emerge rsync' is ambiguous. Does it mean to synchronize the portage tree or is it equivalent to 'emerge net-misc/rsync'? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
eminency n00b
Joined: 27 Aug 2002 Posts: 21 Location: Korea
|
Posted: Wed Nov 06, 2002 8:39 am Post subject: |
|
|
Oh, sorry.
I read posts roughly.
I haven't know that reason.
Thnx for reply. _________________ May the force be with you |
|
Back to top |
|
|
Proteus Guru
Joined: 14 Jul 2002 Posts: 346 Location: Hamburg, Germany
|
Posted: Wed Nov 06, 2002 12:38 pm Post subject: |
|
|
There is no difference. Period.
And from what I have once read somewhere in the official docs the emerge sync command will sooner or later replace emerge rsync.
Sounds logical to me... _________________ Greetings,
Proteus |
|
Back to top |
|
|
plasmagunman l33t
Joined: 07 Jun 2002 Posts: 604 Location: berlin
|
Posted: Wed Apr 23, 2003 3:32 pm Post subject: |
|
|
just a few lines from /usr/lib/portage/bin/emerge:
Code: |
# process the command arguments
for x in cmdline:
if len(x)>=2 and x[0:2]=="--":
if x in options:
myopts.append(x)
elif x[2:] in actions:
if x[2:]=="rsync":
#print
#print red("*** --rsync has been deprecated.")
#print red("*** Please use '--sync' instead.")
x="--sync"
|
_________________ please, feel free to correct my english. - por favor, corrige mi español. |
|
Back to top |
|
|
jbrown Tux's lil' helper
Joined: 17 Feb 2003 Posts: 81
|
Posted: Wed Apr 23, 2003 6:25 pm Post subject: |
|
|
plasmagunman wrote: | just a few lines from /usr/lib/portage/bin/emerge:
Code: |
# process the command arguments
for x in cmdline:
if len(x)>=2 and x[0:2]=="--":
if x in options:
myopts.append(x)
elif x[2:] in actions:
if x[2:]=="rsync":
#print
#print red("*** --rsync has been deprecated.")
#print red("*** Please use '--sync' instead.")
x="--sync"
|
|
I think they introduced sync because one day the rsync program may not be used, but rather some other better program.
My understanding (I don't know why I know this) is that the rsync algorithm itself is brilliant, but the rsync program is not as optimal as it could be for updating a large tree as compared to just updating a single file. |
|
Back to top |
|
|
|