Package _emerge :: Module main
[hide private]

Module main

source code

Classes [hide private]
  long
int(x=0) -> int or long int(x, base=10) -> int or long
Functions [hide private]
 
multiple_actions(action1, action2) source code
 
insert_optional_args(args)
Parse optional arguments and insert a value if one has not been provided.
source code
 
_find_bad_atoms(atoms, less_strict=False)
Declares all atoms as invalid that have an operator, a use dependency, a blocker or a repo spec.
source code
 
parse_opts(tmpcmdline, silent=False) source code
 
profile_check(trees, myaction) source code
 
emerge_main(args=None) source code
Variables [hide private]
  options = ['--alphabetical', '--ask-enter-invalid', '--buildpk...
  shortmapping = {'1': '--oneshot', 'B': '--buildpkgonly', 'C': ...
  COWSAY_MOO = '\n\n Larry loves Gentoo (%s)\n\n ______________...
  __package__ = '_emerge'

Imports: locale, platform, sys, portage, os, ArgumentParser, Atom, emerge_help, insert_category_into_atom, load_emerge_config, logging, run_action, textwrap, validate_ebuild_environment, writemsg_level


Function Details [hide private]

insert_optional_args(args)

source code 

Parse optional arguments and insert a value if one has not been provided. This is done before feeding the args to the optparse parser since that parser does not support this feature natively.

_find_bad_atoms(atoms, less_strict=False)

source code 

Declares all atoms as invalid that have an operator, a use dependency, a blocker or a repo spec. It accepts atoms with wildcards. In less_strict mode it accepts operators and repo specs.

emerge_main(args=None)

source code 
Parameters:
  • args (list) - command arguments (default: sys.argv[1:])

Variables Details [hide private]

options

Value:
['--alphabetical',
 '--ask-enter-invalid',
 '--buildpkgonly',
 '--changed-use',
 '--changelog',
 '--columns',
 '--debug',
 '--digest',
...

shortmapping

Value:
{'1': '--oneshot',
 'B': '--buildpkgonly',
 'C': '--unmerge',
 'F': '--fetch-all-uri',
 'N': '--newuse',
 'O': '--nodeps',
 'P': '--prune',
 'S': '--searchdesc',
...

COWSAY_MOO

Value:
'''

  Larry loves Gentoo (%s)

 _______________________
< Have you mooed today? >
 -----------------------
        \\   ^__^
...