summaryrefslogtreecommitdiffstats
path: root/pym/portage/repository
Commit message (Collapse)AuthorAgeFilesLines
* 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
* RepoConfig: sort __slots__Zac Medico2011-10-151-2/+2
|
* layout.conf: add git friendly pregenerated cache formatBrian Harring2011-10-141-1/+5
| | | | | | | | | | | | | | | | | Enabled via cache-format = md5-dict This format is essentially just flat_hash, using md5 rather than mtime, and dropping the path component from _eclasses_ entries. From a speed standpoint, the md5 overhead is ~16% in comparison to mtime, timed on a modern sandybridge; specifically, validating 29k nodes takes ~8.8s for flat_md5, while the pms norm is ~7.7s. That said, the cache is /usable/ in places PMS is not; in those cases, it can definitely be a win since even if the cache is partially old, it's better than regenerating everything from scratch. (cherry picked from commit 95ddf97e2f7e7d3f6a072604b2df5f77e9298558) Change-Id: Ic3561369b7a8be7f86480f339ab1686fddea6dff
* cache: rewrite to support arbitrary validation methodBrian Harring2011-10-141-7/+11
| | | | | | | | | | Specifically, the cache can use any portage supported checksum method, or use the standard mtime approach. In addition, support controlling whether or not paths are stored, and generally try to restore some of the centralization/encapsulation that was in place originally. (cherry picked from commit bc1aed614fb588f0ade5bcb5d1265a8db0f8d247) Change-Id: Ic38057e7dbb15063c64a93c99e66e113a7d4c70e
* layout.conf: make the pregenerated cache format controllableBrian Harring2011-10-131-1/+18
| | | | | | | | | | | Controllable via 'cache-format', currently it supports only one cache; 'pms', and defaults to it. If an unsupported cache-format is specified, the cache is disabled. If pms is specified and metadata/cache directory doesn't exist, the cache is disabled. Finally, this rips out the best module support for locally overriding the cache format used for pregenerated caches; this functionality made zero sense (upstream determines the format, we use what is available).
* layout.conf: revert authoritative-cache supportZac Medico2011-10-131-25/+2
| | | | Those who wanted it have decided to use a different approach.
* Revert "RepoConfigLoader: Recursively expand masters."Zac Medico2011-10-091-27/+21
| | | | | This reverts commit ab2a6cc357ba3c8272a4a1556e2c0bcd4bee102e. Reverting all masters recursion code for now (see bug #386569).
* Revert "get_masters: protect against infinite recursion"Zac Medico2011-10-091-30/+23
| | | | | This reverts commit 5628dac1538985af640102654bce60a8e526daeb. Reverting all masters recursion code for now (see bug #386569).
* get_masters: protect against infinite recursionZac Medico2011-10-081-23/+30
| | | | We can't have portage crash because of circular deps in layout.conf.
* RepoConfig: allow repos.conf 'masters' overrideZac Medico2011-10-081-8/+18
| | | | | | | | | | | | | This give the user the power to override 'masters' settings from layout.conf, is case they want use a different set of masters to satisfy dependencies. This is especially important now that recursive expansion of masters is supported since commit ab2a6cc357ba3c8272a4a1556e2c0bcd4bee102e, so that the user can avoid pulling in unwanted repositories as dependencies, if necessary. Also, empty 'masters' settings are now supported, in case a repo wants to avoid implicit inheritance of PORTDIR settings like package.mask.
* RepoConfigLoader: Recursively expand masters.Arfrever Frehtes Taifersar Arahesis2011-10-081-21/+27
|