From: Zac Medico Date: Wed, 11 Mar 2009 06:38:28 +0000 (-0000) Subject: Make --version and action. (trunk r12752) X-Git-Tag: v2.1.6.8~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1fe1c832f1c4dc9933714ea676ca5afecdf1377a;p=portage.git Make --version and action. (trunk r12752) svn path=/main/branches/2.1.6/; revision=13000 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 6431edc26..846bde7b1 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -186,7 +186,7 @@ actions = frozenset([ "clean", "config", "depclean", "info", "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={ @@ -14948,7 +14948,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)