Module config
source code
|
|
RepoConfig
Stores config of one repository
|
|
|
RepoConfigLoader
Loads and store config of several repositories, loaded from
PORTDIR_OVERLAY or repos.conf
|
|
|
_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
|
|
|
|
|
|
|
|
|
|
| parse_layout_conf(repo_location,
repo_name=None) |
source code
|
|
Imports:
io,
logging,
warnings,
sys,
re,
SafeConfigParser,
ParsingError,
portage,
eclass_cache,
os,
MANIFEST2_HASH_FUNCTIONS,
MANIFEST2_REQUIRED_HASH,
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,
exists_raise_eaccess,
isdir_raise_eaccess,
_,
_unicode_decode,
_unicode_encode,
_encodings,
manifest
|
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.
|
_valid_profile_formats
- Value:
frozenset([u'pms', u'portage-1', u'portage-2'])
|
|
_portage1_profiles_allow_directories
- Value:
frozenset([u'portage-1', u'portage-1-compat', u'portage-2'])
|
|