adjust_configs(myopts, trees)
apply_priorities(settings)
+ if myaction == 'version':
+ writemsg_stdout(getportageversion(
+ settings["PORTDIR"], settings["ROOT"],
+ settings.profile_path, settings["CHOST"],
+ trees[settings["ROOT"]]["vartree"].dbapi) + '\n', noiselevel=-1)
+ return 0
+ elif myaction == 'help':
+ _emerge.help.help(myopts, portage.output.havecolor)
+ return 0
+
spinner = stdout_spinner()
if "candy" in settings.features:
spinner.update = spinner.update_scroll
not sys.stdout.isatty():
spinner.update = spinner.update_basic
- if myaction == 'version':
- print(getportageversion(settings["PORTDIR"], settings["ROOT"],
- settings.profile_path, settings["CHOST"],
- trees[settings["ROOT"]]["vartree"].dbapi))
- return 0
- elif myaction == "help":
- _emerge.help.help(myopts, portage.output.havecolor)
- return 0
-
if "--debug" in myopts:
print("myaction", myaction)
print("myopts", myopts)