Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What's diff between 'emerge sync' and 'emerge rsync'?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ClippyHater
Apprentice
Apprentice


Joined: 06 Nov 2002
Posts: 247
Location: Wisconsin

PostPosted: Wed Nov 06, 2002 3:09 am    Post subject: What's diff between 'emerge sync' and 'emerge rsync'? Reply with quote

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
View user's profile Send private message
handsomepete
Guru
Guru


Joined: 21 Apr 2002
Posts: 548
Location: Kansas City, MO

PostPosted: Wed Nov 06, 2002 3:16 am    Post subject: Reply with quote

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
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Wed Nov 06, 2002 3:21 am    Post subject: Reply with quote

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
View user's profile Send private message
eminency
n00b
n00b


Joined: 27 Aug 2002
Posts: 21
Location: Korea

PostPosted: Wed Nov 06, 2002 6:04 am    Post subject: They are same, aren't them? Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Nov 06, 2002 6:33 am    Post subject: Reply with quote

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
View user's profile Send private message
eminency
n00b
n00b


Joined: 27 Aug 2002
Posts: 21
Location: Korea

PostPosted: Wed Nov 06, 2002 8:39 am    Post subject: Reply with quote

Oh, sorry.
I read posts roughly.
I haven't know that reason.

Thnx for reply. :-)
_________________
May the force be with you
Back to top
View user's profile Send private message
Proteus
Guru
Guru


Joined: 14 Jul 2002
Posts: 346
Location: Hamburg, Germany

PostPosted: Wed Nov 06, 2002 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
plasmagunman
l33t
l33t


Joined: 07 Jun 2002
Posts: 604
Location: berlin

PostPosted: Wed Apr 23, 2003 3:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
jbrown
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2003
Posts: 81

PostPosted: Wed Apr 23, 2003 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum