finally remove --rsync
authorMarius Mauch <genone@gentoo.org>
Sun, 19 Feb 2006 04:46:09 +0000 (04:46 -0000)
committerMarius Mauch <genone@gentoo.org>
Sun, 19 Feb 2006 04:46:09 +0000 (04:46 -0000)
svn path=/main/trunk/; revision=2740

bin/emerge
pym/emergehelp.py

index 09a1dfd7a79568b03cf4354555f4f452ca65c8dc..e0be7e05e433f638bc2bd10cf812131cec1c204f 100755 (executable)
@@ -170,7 +170,7 @@ params=["selective", "deep", "self", "recurse", "empty"]
 actions=[
 "clean", "config", "depclean",
 "info",  "inject", "metadata",
-"prune", "regen",  "rsync", "search",
+"prune", "regen",  "search",
 "sync",  "system", "unmerge",  "world",
 ]
 options=[
@@ -257,13 +257,6 @@ for x in cmdline:
                if x in options:
                        myopts.append(x)
                elif x[2:] in actions:
-                       if x[2:]=="rsync" or x=="rsync":
-                               # "emerge --rsync"
-                               print
-                               print red("*** '--rsync' has been deprecated.")
-                               print red("*** Please use '--sync' instead.")
-                               print
-                               x="--sync"
                        if myaction:
                                if myaction not in ["system", "world"]:
                                        myaction="--"+myaction
@@ -279,14 +272,7 @@ for x in cmdline:
        elif (not myaction) and (x in actions):
                if x not in ["system", "world"]:
                        #print red("*** Deprecated use of action '"+x+"'")
-                       if x=="rsync":
-                               # "emerge rsync"
-                               print
-                               print red("*** 'rsync' will now install the package rsync.")
-                               print red("*** To sync the tree, please use '--sync' instead.")
-                               print
-                               myfiles.append(x)
-                               continue
+                       pass
                if myaction:
                        print
                        print red("!!!")+green(" Multiple actions requested... Please choose one only.")
@@ -2481,7 +2467,7 @@ def chk_updated_cfg_files():
 if "--debug" in myopts:
        edebug=1
 
-if myaction in ["sync","rsync","metadata"] and (not "--help" in myopts):
+if myaction in ["sync","metadata"] and (not "--help" in myopts):
        if "--pretend" in myopts:
                print "emerge: \"sync\" actions do not support \"--pretend.\""
                sys.exit(1)
index 2cab41195a04163425cbefd25b9bab3f32c622d5..322c5f951eb2ad1c50feded2d8fd8f8b9d6fb010 100644 (file)
@@ -302,7 +302,7 @@ def help(myaction,myopts,havecolor=1):
                print "              other information useful for quick reference on a system. See"
                print "              "+bold("emerge info")+" for more advanced information."
                print
-       elif myaction in ["rsync","sync"]:
+       elif myaction == "sync":
                print
                print bold("Usage: ")+turquoise("emerge")+" "+turquoise("--sync")
                print