summaryrefslogtreecommitdiffstats
path: root/pym/portage/repository/config.py
Commit message (Collapse)AuthorAgeFilesLines
* RepoConfigLoader: raise PermissionDenied moreZac Medico2013-01-241-12/+4
|
* RepoConfigLoader: raise PermissionDeniedZac Medico2013-01-241-1/+10
|
* Add workaround for Python 2.6.4 issue 4978Zac Medico2013-01-181-1/+1
| | | | | Avoid "TypeError: keywords must be strings" issue triggered by unicode_literals: http://bugs.python.org/issue4978
* Use unicode_literals more.Zac Medico2013-01-181-5/+7
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* portdbapi: DeprecationWarning for 'pms' cacheZac Medico2012-11-271-1/+1
|
* egencache: enable md5-dict format by defaultZac Medico2012-11-271-3/+10
| | | | | | | | | | WARNING: Portage versions prior to portage-2.1.11.14 will NOT recognize the 'md5-dict' format unless it is explicitly listed in metadata/layout.conf (refer to portage(5) for example usage). WARNING: For backward compatibility, the obsolete 'pms' cache format will still be generated by default if the metadata/cache/ directory exists in the repository.
* Bug #434970: Disable some warnings during `emerge --sync`.Arfrever Frehtes Taifersar Arahesis2012-10-141-3/+5
|
* RepoConfig: add find_invalid_path_char methodZac Medico2012-09-231-1/+21
| | | | | | This binds filename validation to the RepoConfig, so that eventually we'll be able to control it via a layout.conf setting as discussed in bug #435934.
* Improve allowing of directories on profile level and repository level in ↵Arfrever Frehtes Taifersar Arahesis2012-09-211-4/+6
| | | | EAPI="4-python".
* Detect md5-cache when no cache-formats specified.Zac Medico2012-09-071-3/+9
| | | | | | | Auto-detect cache-formats from the corresponding directories when cache-formats is not specifed in layout.conf, and prefer md5-dict if available. After this behavior is deployed in stable portage, the default egencache format can be changed to md5-dict.
* parse_layout_conf: fix cache-formats pms fallbackZac Medico2012-06-051-3/+3
| | | | | This fixes an issue where egencache would not generate metadata/cache unless the directory already existed.
* Profile parent repo: references for bug #414961.Zac Medico2012-05-201-2/+2
| | | | | | | | | If "profile-formats = portage-2" is specified in metadata/layout.conf, then paths such as 'gentoo:targets/desktop' or ':targets/desktop' in profile parent files can be used to express paths relative to the root 'profiles' directory of a repository. When the repo name is omitted before the colon, it refers to the current repository that the parent file is inside of.
* RepoConfig: cleanup portage1_profiles codev2.2.0_alpha106Zac Medico2012-05-161-1/+4
|
* Cleanup profile-formats code.v2.2.0_alpha104Zac Medico2012-05-111-2/+5
|
* RepoConfig: sort __slots__Zac Medico2012-05-111-3/+3
|
* Avoid redundant layout.conf parsing.Zac Medico2012-05-111-1/+2
| | | | | | By passing the RepoConfigLoader instance into LocationsManager, we can re-use previously parsed layout.conf data. The RepoConfigLoader instance will also be useful for bug #414961.
* config: propagate SYNC to self.repositoriesZac Medico2012-05-111-7/+0
| | | | | | This resolves a circular dependency on the SYNC variable, which is useful for bug #414961, since we want to be able to initialize self.repositories before the SYNC variable is known.
* repoman: make virtual.oldstyle an errorZac Medico2012-02-171-2/+7
| | | | | Also, add "allow-provide-virtuals = true" setting for metadata/layout.conf which reduces it to a warning.
* repoman: support git commit --gpg-signZac Medico2012-02-041-2/+8
| | | | | | | In order to sign commits with git, you will need Git >=1.7.9 and your key will have to be configured by `git config user.signingkey key_id`. Also, the repository will need to have "sign-commits = true" in metadata/layout.conf. This will fix bug #333687.
* Honor repos.conf for overlay priority, bug 402099Daniel Hornung2012-02-031-2/+2
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* Set portage-1 as default profile format for repositories using EAPI="4-python".Arfrever Frehtes Taifersar Arahesis2012-01-081-1/+5
|
* Set eapi attribute on portage.repository.config.RepoConfig objects.Arfrever Frehtes Taifersar Arahesis2012-01-081-5/+8
|
* RepoConfigLoader: don't mix duplicate repo configv2.2.0_alpha84Zac Medico2011-12-281-18/+17
| | | | | | | | RepoConfig.update() was being used to copy attributes from one instance to another, possibly leading to inappropriate mixing of layout.conf attributes from separate copies of the same repo. This is common with repoman, for example, when temporarily overriding an rsync repo with another copy of the same repo from CVS.
* RepoConfig.update(): copy more attributesZac Medico2011-12-271-3/+10
| | | | | | | | | | This fixes a regression since commit 10246cd535f909dda8bd05de617c32d2b8a56b4a which caused layout.conf settings such as thin-manifests to be ignored for repositories that had repos.conf settings that did not specify the repository location. In order to trigger this case, ResolverPlayground has been modified to omit the location of each repository in the repos.conf file that it generates.
* portage.repository.config.RepoConfigLoader: Rename _add_overlays() toArfrever Frehtes Taifersar Arahesis2011-12-251-2/+2
| | | | _add_repositories().
* Define portage.repository.config.RepoConfig.__repr__().Arfrever Frehtes Taifersar Arahesis2011-12-181-0/+3
|
* RepoConfigLoader._add_overlays(): Rename a variable and add a comment.Arfrever Frehtes Taifersar Arahesis2011-12-181-8/+9
|
* Optimize RepoConfigLoader._add_overlays().Arfrever Frehtes Taifersar Arahesis2011-12-181-7/+3
|
* Parse layout.conf files in portage.repository.config.RepoConfig.__init__()Arfrever Frehtes Taifersar Arahesis2011-12-181-29/+27
| | | | instead of portage.repository.config.RepoConfigLoader.__init__().
* RepoConfigLoader: masters eclass override orderZac Medico2011-12-131-1/+6
| | | | | | | | Only append the current repo to eclass_locations if it's not there already. This allows masters to have more control over eclass override order, which may be useful for scenarios in which there is a plan to migrate eclasses to a master repo. Thanks to Brian Harring <ferringb@gentoo.org) for suggesting this behavior.
* Add eclass_db attribute in portage.repository.config.RepoConfig objects.Arfrever Frehtes Taifersar Arahesis2011-12-091-3/+21
|
* RepoConfig: add iter_pregenerated_caches methodZac Medico2011-10-281-12/+20
| | | | | This will be used by egencache to generate cache for all supported formats.
* RepoConfigLoader: python3.2 readfp deprecationZac Medico2011-10-281-2/+9
|
* RepoConfigLoader: use readfp for unicodeZac Medico2011-10-271-4/+21
|
* RepoConfigLoader: sort layout.conf attributesZac Medico2011-10-271-3/+3
|
* RepoConfigLoader: support incremental aliasesZac Medico2011-10-271-9/+7
| | | | | This allows a user to discard unwanted aliases that are specified in a repo's layout.conf.
* RepoConfigLoader: comment on masters overrideZac Medico2011-10-271-0/+2
|
* RepoConfig.update(): getattr/setattr loopZac Medico2011-10-271-15/+7
|
* parse_layout_conf: comment on masters fallbackZac Medico2011-10-271-2/+5
|
* parse_layout_conf: grab repo_name for error msgsZac Medico2011-10-271-17/+32
| | | | | | This allows us to avoid duplicate warnings for 'unspecified' repo since parse_layout_conf is initially called without specifying the repo in LocationsManager.load_profiles().
* Fix profile-formats spelling in messages.Zac Medico2011-10-271-1/+1
|
* parse_layout_conf: fix profile-formats warningZac Medico2011-10-271-5/+7
|
* repoman: add opts and repo config debug outputZac Medico2011-10-261-1/+1
|
* repoman: add opts and repo config debug outputZac Medico2011-10-261-0/+14
|
* parse_layout_conf: fix inverted update-changelogZac Medico2011-10-261-1/+1
| | | | | The logic got inverted when parse_layout_conf was split out in commit 0be173a54a5248cfd70a3543d7099d2dd3ee254b.
* RepoConfigLoader: redundant cache_formats settingZac Medico2011-10-261-2/+0
| | | | There's a loop that already handles this via setattr.
* layout.conf: rename cache_format to cache_formatsZac Medico2011-10-251-16/+28
| | | | | | We read layout.conf cache-formats from left to right and use the first supported type that's found. This will allow support for multiple formats in parallel, providing for smooth transitions between formats.
* layout.conf: add profile-format awarenessBrian Harring2011-10-251-1/+22
| | | | | | | | Note the portage-1-compat mode; this isn't settable externally, is purely an internal mode for tracking if a repository is in portage-1 compat mode, rather than explicit portage-1 mode. This compat mode will be removed once portage becomes strict.
* split out layout.conf parsing so it's usable elsewhereBrian Harring2011-10-251-69/+86
|
* repoman: get default to update changelog from layout.confFabian Groffen2011-10-201-1/+5
| | | | | | | | | | | | | Updating the ChangeLog file may be desirable in more repos than just the one named 'gentoo', like e.g. the Prefix one. Hence, make this default configurable though metadata/layout.conf. This commit must go accompanied by a commit to gentoo-x86/metadata/layout.conf that adds the following bit: # Bug #337853 - gentoo's council says to enable # --echangelog by default for the "gentoo" repo update-changelog = true