summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Add portdbapi support for a metadata/layout.conf file whichZac Medico2009-04-066-53/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | specifies information about the repository layout. Currently, only a single "masters" attribute is supported, which is used to specify names of repositories which satisfy dependencies on eclasses and/or ebuilds. Each repository name should correspond the value of a repo_name entry from one of the repositories that is configured via the PORTDIR or PORTDIR_OVERLAY variables. Since layout.conf is now used to control eclass inheritance, it is now safer to use overlays which contain forked eclasses have names identical to those from the main tree. Such eclasses will only apply to their containing repository and any other repositories which reference their containing repository via layout.conf. This solves bug #124041 by containing eclass overrides so that they don't necessarily apply to all ebuilds. Thanks to Alistair Bush <ali_bush@g.o> for his initial patch for layout.conf support in repoman (will be merged later). See the "QA Overlay Layout support" thread on the gentoo-dev mailing list for more information: http://archives.gentoo.org/gentoo-dev/msg_33c61550b4ed2b7b25dd5a4110e1ec81.xml svn path=/main/trunk/; revision=13291
* Bug #262647 - Inside config.setcpv(), never add SRC_URI to the environmentZac Medico2009-04-051-4/+10
| | | | | | since that can cause execve() calls to fail with E2BIG errors. svn path=/main/trunk/; revision=13290
* Inside tar_contents(), don't emulate tar --numeric-id option. The uid/gidZac Medico2009-04-021-3/+0
| | | | | | | might be different on the system where the package will be installed, so we need to store the actual user/group name in the tar file. svn path=/main/trunk/; revision=13281
* Allow --root-deps for ROOT=/, so people can do weird things like use it withZac Medico2009-04-011-8/+6
| | | | | | | | | -e to remerge deep runtime deps without pulling in build-time deps. It's not something we really want to advertise, but it's good to leave the option open in case it happens to be useful. Thanks to Ned Ludd <solar@g.o> for the suggestion. svn path=/main/trunk/; revision=13271
* Clarify docs for --root-deps.Zac Medico2009-04-011-1/+2
| | | | svn path=/main/trunk/; revision=13268
* Combine the --rdeps-only and --root-deps options into a single --root-depsZac Medico2009-04-012-17/+32
| | | | | | option which takes an optional 'rdeps' argument. svn path=/main/trunk/; revision=13267
* Add support for a EGENCACHE_DEFAULT_OPTS variable in make.conf.Zac Medico2009-04-011-1/+1
| | | | svn path=/main/trunk/; revision=13266
* Add a new egencache --rsync option which enables a stat collision workaroundZac Medico2009-03-312-8/+63
| | | | | | | | | | | | for cases in which the content of a cache entry changes and neither the file mtime nor size changes (preventing rsync from detecting changes). See bug #139134. This option should only be needed for distribution via something like rsync, which relies on timestamps and file sizes to detect changes. It's not needed with git since that uses a more thorough mechanism which allows it to detect changed inode numbers (described in racy-git.txt in the git technical docs). svn path=/main/trunk/; revision=13262
* Bug #263370 - In create_message(), use email.header.Header to wrap theZac Medico2009-03-311-1/+4
| | | | | | | subject, as a workaround so that long subject lines are wrapped correctly by <=python-2.6 (gentoo bug #263370, python issue #1974). svn path=/main/trunk/; revision=13261
* When in --quiet mode, still show a message for failures inZac Medico2009-03-311-1/+1
| | | | | | MetadataRegen._metadata_exit(). svn path=/main/trunk/; revision=13259
* In MetadataRegen._metadata_exit(), notify the consumer of failures (in thisZac Medico2009-03-311-7/+10
| | | | | | case the metadata argument is None). svn path=/main/trunk/; revision=13258
* Add a "consumer" keyword parameter to the MetadataRegen constructor whichZac Medico2009-03-312-8/+27
| | | | | | | can be used to pass in a callback that is called for each ebuild that is processed (allowing access to the ebuild metadata). svn path=/main/trunk/; revision=13256
* Add support in MetadataRegen for cleansing stale cache when only a subsetZac Medico2009-03-302-10/+28
| | | | | | of packages are processed. svn path=/main/trunk/; revision=13255
* Add a cp_iter keyword argument to the MetadataRegen constructor, which can beZac Medico2009-03-301-15/+32
| | | | | | | used to do a regen for a subset of packages. TODO: Add support to cleanse cache for the specific cp values that are processed. svn path=/main/trunk/; revision=13254
* Fix --newuse code to compare installed package USE to the USE that a binaryZac Medico2009-03-301-1/+1
| | | | | | package was built with (instead of config["PORTAGE_USE"]). svn path=/main/trunk/; revision=13253
* Bug #264291 - Fix inappropriate build dir creation for emerge --fetchonly.Zac Medico2009-03-302-3/+7
| | | | svn path=/main/trunk/; revision=13252
* Implement _use_dep.__repr__(). Thanks to Douglass Anderson for the suggestion.Zac Medico2009-03-301-0/+3
| | | | svn path=/main/trunk/; revision=13251
* Update dep_getusedeps() docstring. Thanks to Douglass AndersonZac Medico2009-03-301-2/+2
| | | | | | <dja@gendja.com>. svn path=/main/trunk/; revision=13250
* Fix bug in old-style virtuals code from previous commit.Zac Medico2009-03-291-1/+1
| | | | svn path=/main/trunk/; revision=13249
* Inside depgraph.validate_blockers(), prevent false positives in PROVIDEZac Medico2009-03-291-5/+14
| | | | | | | | virtual blocker matches that can occur for packages for packages that don't actual have the appropriate value in PROVIDE (triggered by profile 'virtuals' settings). Thanks to Ned Ludd <solar@g.o> for reporting. svn path=/main/trunk/; revision=13248
* Document --root and --config-root.Zac Medico2009-03-291-0/+12
| | | | svn path=/main/trunk/; revision=13247
* Add a --root option that sets $ROOT (complements the --config-root option).Zac Medico2009-03-291-1/+7
| | | | svn path=/main/trunk/; revision=13246
* Add support for --rdeps-only and --root-deps options which are useful inZac Medico2009-03-292-1/+28
| | | | | | | combination with $ROOT. Thanks to Ned Ludd <solar@g.o> for the initial patch. svn path=/main/trunk/; revision=13245
* Bug #243220 - Show messages in emerge.log when old versions are uninstalledZac Medico2009-03-282-6/+37
| | | | | | | | for AUTOCLEAN. This reverts behavior so that messages which used to be generated prior to portage-2.1.5.x (when AUTOCLEAN was moved from emerge to dblink.treewalk()) are generated once again. svn path=/main/trunk/; revision=13241
* Don't show the package counter for "Uninstalling" messages.Zac Medico2009-03-281-3/+6
| | | | svn path=/main/trunk/; revision=13240
* Add (x of y ) package counter in the "Installing" message, similar to theZac Medico2009-03-281-1/+5
| | | | | | | counter show in the "Emerging" message. Thanks to Ned Ludd <solar@g.o> for the suggestion. svn path=/main/trunk/; revision=13239
* Make the argument hash in config.setcpv() a little stronger.v2.2_rc28Zac Medico2009-03-271-5/+7
| | | | svn path=/main/trunk/; revision=13232
* Fix typo in comment.Zac Medico2009-03-271-1/+1
| | | | svn path=/main/trunk/; revision=13230
* In config.setcpv(), make sure the current args are really identical to theZac Medico2009-03-271-2/+7
| | | | | | previous args before returning early. svn path=/main/trunk/; revision=13227
* Inside config.setcpv(), don't clear out self.configdict['pkg'] entirelyZac Medico2009-03-271-4/+11
| | | | | | since some values need to be reused sometimes. svn path=/main/trunk/; revision=13226
* In portdbapi.findname2(), move some of the path joining out of the loop.Zac Medico2009-03-271-3/+6
| | | | svn path=/main/trunk/; revision=13224
* Move checks for /usr/lib/distcc/bin and /usr/lib/ccache/bin to the pythonZac Medico2009-03-261-5/+23
| | | | | | | | side and don't add distcc to CC and CXX when /usr/lib/distcc/bin doesn't exist since that won't necessarily work. Thanks to Jeroen Roovers <jer@g.o> for reporting the issue with adding distcc to CC. svn path=/main/trunk/; revision=13198
* Make StaticFileSet.multiBuilder() filter hidden files and directories. ThanksZac Medico2009-03-261-0/+5
| | | | | | to oahong for reporting. svn path=/main/trunk/; revision=13193
* In config.regenerate(), always synchronize self.features with self['FEATURES'].Zac Medico2009-03-261-4/+6
| | | | svn path=/main/trunk/; revision=13189
* In config.setcpv(), clear out self.configdict["pkg"] to make sure that noZac Medico2009-03-261-0/+1
| | | | | | preexisting metadata leaks through here. svn path=/main/trunk/; revision=13188
* Bug #227265 - Make pkgsplit() allow multiple consecutive hyphens in packageZac Medico2009-03-262-9/+5
| | | | | | names, and add corresponding test cases. svn path=/main/trunk/; revision=13187
* Add test case for consecutive hyphens.Zac Medico2009-03-251-0/+3
| | | | svn path=/main/trunk/; revision=13186
* Bug #227265 - Make pkgsplit() allow "versiony looking parts" in package names,Zac Medico2009-03-252-6/+4
| | | | | | for pms compliance. Also, add corresponding test cases. svn path=/main/trunk/; revision=13185
* Note that --noreplace takes precedence over options such as --newuse.Zac Medico2009-03-241-0/+6
| | | | svn path=/main/trunk/; revision=13180
* Update code for removing noauto from FEATURES since config.features is aZac Medico2009-03-241-3/+2
| | | | | | set instead of a list now. svn path=/main/trunk/; revision=13178
* Remove redundant EAPI assingment inside doebuild_environment().v2.2_rc27Zac Medico2009-03-241-1/+1
| | | | svn path=/main/trunk/; revision=13176
* Add support for FEATURES=parse-eapi-glep-55. This feature is only intended forZac Medico2009-03-244-17/+103
| | | | | | experimental purposes and should not be enabled under normal circumstances. svn path=/main/trunk/; revision=13175
* If a package is masked by EAPI then don't show any other masking reasons.Zac Medico2009-03-231-3/+9
| | | | svn path=/main/trunk/; revision=13174
* Add support for FEATURES=parse-eapi-ebuild-head, which is similar to GLEP 55Zac Medico2009-03-234-13/+82
| | | | | | | | except that the EAPI is parsed from the head of the ebuild (first 30 lines). This feature is only intended for experimental purposes and should not be enabled under normal circumstances. svn path=/main/trunk/; revision=13173
* When calling doebuild() to spawn the 'depend' phase, just call config.setcpv()Zac Medico2009-03-233-5/+5
| | | | | | since that should be enough (no need for separate reset or reload calls). svn path=/main/trunk/; revision=13170
* Fix misc typos in comments.Zac Medico2009-03-232-2/+2
| | | | svn path=/main/trunk/; revision=13168
* Replace xrange() usage with normal iteration and enumerate() whereZac Medico2009-03-221-14/+15
| | | | | | | appropriate. Thanks to Douglass Anderson <dja@gendja.com> for the initial patch. svn path=/main/trunk/; revision=13145
* Inside spawn(), avoid redundant os.access() and stat() calls on commonlyZac Medico2009-03-221-1/+2
| | | | | | | spawned binaries such as BASH_BINARY, SANDBOX_BINARY, and FAKEROOT_BINARY. Thanks to Piotr Jaroszyński <peper@g.o> for reporting. svn path=/main/trunk/; revision=13144
* Inside config.environ(), skip stat call on $T/environment for phases suchZac Medico2009-03-221-5/+6
| | | | | | | as 'clean' and 'depend' where environment filtering isn't needed. Thanks to Piotr Jaroszyński <peper@g.o> for reporting. svn path=/main/trunk/; revision=13143
* Remove pointless usage of xrange(). Thanks to Douglass AndersonZac Medico2009-03-221-2/+2
| | | | | | <dja@gendja.com> for this patch. svn path=/main/trunk/; revision=13142