Package portage :: Package repository :: Module config
[hide private]

Module config

source code

Classes [hide private]
  basestring
str(object='') -> string
  RepoConfig
Stores config of one repository
  RepoConfigLoader
Loads and store config of several repositories, loaded from PORTDIR_OVERLAY or repos.conf
Functions [hide private]
 
_gen_valid_repo(name)
Substitute hyphen in place of characters that don't conform to PMS 3.1.5, and strip hyphen from left side if necessary.
source code
 
_find_invalid_path_char(path, pos=0, endpos=None)
Returns the position of the first invalid character found in basename, or -1 if no invalid characters are found.
source code
 
load_repository_config(settings, extra_files=None) source code
 
_get_repo_name(repo_location, cached=None) source code
 
parse_layout_conf(repo_location, repo_name=None) source code
Variables [hide private]
  _invalid_path_char_re = re.compile(r'[^a-zA-Z0-9\._-\+:/]')
  _valid_profile_formats = frozenset([u'pms', u'portage-1', u'po...
  _portage1_profiles_allow_directories = frozenset([u'portage-1'...
  _repo_name_sub_re = re.compile(r'[^\w-]')
  __package__ = 'portage.repository'

Imports: io, logging, warnings, sys, re, SafeConfigParser, ConfigParserError, eclass_cache, os, MANIFEST2_HASH_FUNCTIONS, MANIFEST2_REQUIRED_HASH, PORTAGE_BASE_PATH, REPO_NAME_LOC, USER_CONFIG_PATH, eapi_allows_directories_on_profile_level_and_repository_level, KeyValuePairFileLoader, normalize_path, read_corresponding_eapi_file, shlex_split, stack_lists, writemsg, writemsg_level, _recursive_file_list, exists_raise_eaccess, isdir_raise_eaccess, _, _unicode_decode, _unicode_encode, _encodings, manifest, portage


Function Details [hide private]

_gen_valid_repo(name)

source code 

Substitute hyphen in place of characters that don't conform to PMS 3.1.5, and strip hyphen from left side if necessary. This returns None if the given name contains no valid characters.


Variables Details [hide private]

_valid_profile_formats

Value:
frozenset([u'pms', u'portage-1', u'portage-2', u'profile-bashrcs'])

_portage1_profiles_allow_directories

Value:
frozenset([u'portage-1', u'portage-1-compat', u'portage-2'])