summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-26 05:46:39 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-26 05:46:39 +0000
commita433908d7bb5e32b116f267e86ca013a74a7691f (patch)
treef55abd041baa820700788774d36eb4f55d7e42de
parentefe96ef184b8a5206441bd3e349f229149c988e4 (diff)
downloadportage-a433908d7bb5e32b116f267e86ca013a74a7691f.tar.gz
portage-a433908d7bb5e32b116f267e86ca013a74a7691f.tar.bz2
portage-a433908d7bb5e32b116f267e86ca013a74a7691f.zip
Add -R as a shortcut for --depclean. Thanks to Jonathan Callen <abcd@g.o> for
the suggestion. svn path=/main/trunk/; revision=14730
-rw-r--r--man/emerge.12
-rw-r--r--pym/_emerge/help.py4
-rw-r--r--pym/_emerge/main.py1
3 files changed, 4 insertions, 3 deletions
diff --git a/man/emerge.1 b/man/emerge.1
index a60786649..8e40818d0 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -105,7 +105,7 @@ Run package specific actions needed to be executed after the emerge process
has completed. This usually entails configuration file setup or other similar
setups that the user may wish to run.
.TP
-.BR \-\-depclean
+.BR "\-\-depclean (-R)"
Cleans the system by removing packages that are not associated
with explicitly merged packages. Depclean works by creating the
full dependency tree from the @world set,
diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py
index 9d036f05f..7d7fe7792 100644
--- a/pym/_emerge/help.py
+++ b/pym/_emerge/help.py
@@ -14,7 +14,7 @@ def shorthelp():
print(" "+turquoise("emerge")+" < "+turquoise("--sync")+" | "+turquoise("--metadata")+" | "+turquoise("--info")+" >")
print(" "+turquoise("emerge")+" "+turquoise("--resume")+" [ "+green("--pretend")+" | "+green("--ask")+" | "+green("--skipfirst")+" ]")
print(" "+turquoise("emerge")+" "+turquoise("--help")+" [ "+green("--verbose")+" ] ")
- print(bold("Options:")+" "+green("-")+"["+green("abBcCdDefgGhjkKlnNoOpPqrsStuvV")+"]")
+ print(bold("Options:")+" "+green("-")+"["+green("abBcCdDefgGhjkKlnNoOpPqrRsStuvV")+"]")
print(" [ " + green("--color")+" < " + turquoise("y") + " | "+ turquoise("n")+" > ] [ "+green("--columns")+" ]")
print(" [ "+green("--complete-graph")+" ] [ "+green("--deep")+" ]")
print(" [ "+green("--jobs") + " " + turquoise("JOBS")+" ] [ "+green("--keep-going")+" ] [ " + green("--load-average")+" " + turquoise("LOAD") + " ]")
@@ -66,7 +66,7 @@ def help(myopts, havecolor=1):
print(" emerge process has completed. This usually entails configuration")
print(" file setup or other similar setups that the user may wish to run.")
print()
- print(" "+green("--depclean"))
+ print(" "+green("--depclean")+" ("+green("-R")+" short option)")
paragraph = "Cleans the system by removing packages that are " + \
"not associated with explicitly merged packages. Depclean works " + \
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index a20a5e7b7..f8cb76777 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -87,6 +87,7 @@ shortmapping={
"p":"--pretend", "P":"--prune",
"q":"--quiet",
"r":"--resume",
+"R":"--depclean",
"s":"--search", "S":"--searchdesc",
"t":"--tree",
"u":"--update",