summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-05 03:43:03 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-05 03:43:03 +0000
commit31b309b1c91e66e9a8cff953f128b03483d93ae4 (patch)
treebf7b0aad1421604374ea3d53fbe0a93936c67abf
parent29950d3be0b14877587dec725eeabbb949e0d616 (diff)
downloadportage-31b309b1c91e66e9a8cff953f128b03483d93ae4.tar.gz
portage-31b309b1c91e66e9a8cff953f128b03483d93ae4.tar.bz2
portage-31b309b1c91e66e9a8cff953f128b03483d93ae4.zip
Make --version and action.
svn path=/main/trunk/; revision=12752
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index a53d58a8f..4f4ed1e1c 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -186,7 +186,7 @@ actions = frozenset([
"clean", "config", "depclean",
"info", "list-sets", "metadata",
"prune", "regen", "search",
-"sync", "unmerge",
+"sync", "unmerge", "version",
])
options=[
"--ask", "--alphabetical",
@@ -211,7 +211,7 @@ options=[
"--tree",
"--update",
"--usepkg", "--usepkgonly",
-"--verbose", "--version"
+"--verbose",
]
shortmapping={
@@ -15439,7 +15439,7 @@ def emerge_main():
if not sys.stdout.isatty() or ("--nospinner" in myopts):
spinner.update = spinner.update_basic
- if "--version" in myopts:
+ if myaction == 'version':
print getportageversion(settings["PORTDIR"], settings["ROOT"],
settings.profile_path, settings["CHOST"],
trees[settings["ROOT"]]["vartree"].dbapi)