summaryrefslogtreecommitdiffstats
path: root/pym/portage
Commit message (Collapse)AuthorAgeFilesLines
* Add note about 'use' in the Atom.intersects() docstring.v2.2_rc31Zac Medico2009-04-191-2/+3
| | | | svn path=/main/trunk/; revision=13375
* Add a new --deselect action which removes atoms from the world file. ThisZac Medico2009-04-191-0/+30
| | | | | | | | action is implied by uninstall actions, including --depclean, --prune and --unmerge. Use --deselect=n in order to prevent uninstall actions from removing atoms from the world file. This solves bug #259994 and bug #265206. svn path=/main/trunk/; revision=13363
* Fix default master code so that it doesn't trigger when PORTDIR is empty.Zac Medico2009-04-191-1/+1
| | | | svn path=/main/trunk/; revision=13362
* If a repo doesn't have metadata/layout.conf then use either missing eclassZac Medico2009-04-191-3/+5
| | | | | | | directory or missing profiles/profiles.desc to trigger assignment of a default master. svn path=/main/trunk/; revision=13361
* Fix lockfile() docstring to correctly document the wantnewlockfile behavior.Zac Medico2009-04-181-2/+4
| | | | | | Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=13355
* Simplify pkgcmp(). Thanks to Douglas Anderson <dja@gendja.com> for this patchZac Medico2009-04-181-9/+1
| | | | | | from bug #266493. svn path=/main/trunk/; revision=13354
* Bug #266493 - Never return a long from vercmp() since that can trigger anZac Medico2009-04-171-9/+19
| | | | | | | | | OverflowError if it's returned by a __cmp__ implementation. Thanks to Douglas Anderson <dja@gendja.com> for the initial patch. I've modified it to use the (a > b) - (a < b) construct as suggested in the py3k docs, since cmp() is no longer supported in py3k. svn path=/main/trunk/; revision=13353
* Add support for repos.conf 'aliases' attribute which allows aliasZac Medico2009-04-162-1/+22
| | | | | | substitution in metadata/layout.conf repository references. svn path=/main/trunk/; revision=13352
* Add support in repos.conf to override the "masters" setting from layout.conf.Zac Medico2009-04-162-11/+30
| | | | svn path=/main/trunk/; revision=13350
* Bug #265909 - Make emerge display a warning message if any overlays areZac Medico2009-04-152-2/+8
| | | | | | | ignored due to duplicate profiles/repo_name entries. The warning can be disabled by setting PORTAGE_REPO_DUPLICATE_WARN=0 in /etc/make.conf. svn path=/main/trunk/; revision=13348
* Bug #266211 - Handle ESTALE like ENOENT in fetch and locking code. Thanks toZac Medico2009-04-152-10/+11
| | | | | | Krzysztof Olędzki <ole+gentoo@ans.pl> for the initial patch. svn path=/main/trunk/; revision=13347
* Convert portage.bsd_chflags into a class with chflags() and lchflags() classZac Medico2009-04-131-40/+42
| | | | | | methods. svn path=/main/trunk/; revision=13343
* Make portage.bsd_chflags correspond to FEATURES=chflags so that it can beZac Medico2009-04-131-0/+3
| | | | | | used for related conditionals in shell code. svn path=/main/trunk/; revision=13342
* Add a note about dlopen and libtool archives in the LinkageMap.findConsumers()Zac Medico2009-04-121-0/+5
| | | | | | docstring. svn path=/main/trunk/; revision=13334
* Add a LibraryFileConsumerSet class that can be used to rebuild all packagesZac Medico2009-04-121-1/+35
| | | | | | | | that consume one or more given files. Note: This does not detect libtool archive (*.la) files that consume the specified files (revdep-rebuild is able to detect them). svn path=/main/trunk/; revision=13333
* Bug #265768 - Handle CacheError when deleting currupt cache insidev2.2_rc30Zac Medico2009-04-121-0/+2
| | | | | | portdbapi._pull_valid_cache(). svn path=/main/trunk/; revision=13331
* Bug #265768 - If the user happens to be using the metadata_overlay moduleZac Medico2009-04-121-1/+3
| | | | | | | then initialize it's eclass cache with an appropriate instance inside the portdbapi constructor. svn path=/main/trunk/; revision=13329
* Bug #265768 - When initializing the eclass cache, use the correct location.Zac Medico2009-04-121-1/+1
| | | | svn path=/main/trunk/; revision=13328
* Inside the portdbapi constructor, handle repositories with the same repo_nameZac Medico2009-04-121-20/+40
| | | | | | by discarding the ones that were encountered earlier. svn path=/main/trunk/; revision=13327
* Bug #265747 - Add a new /etc/portage/repos.conf config file which can be usedZac Medico2009-04-112-2/+69
| | | | | | | | | | | | | | | | | | | | | | | to configure site-specific eclass override behavior. Note that configuration settings which are specified here do not apply to tools such as repoman(1) and egencache(1) since their operations are inherently not site-specific. Beware that use of eclass-overrides is generally not recommended and that it may trigger performance issues under some circumstances (see bug #124041). Example: # make all repositories inherit eclasses from the java-overlay and # java-experimental repositories, with eclasses from java-experimental # taking precedence over those from java-overlay [DEFAULT] eclass-overrides = java-overlay java-experimental # disable all eclass overrides for the gentoo repository [gentoo] eclass-overrides = svn path=/main/trunk/; revision=13325
* Use _doebuild_exit_status_check() for unsuccessful return codes (no justZac Medico2009-04-101-20/+20
| | | | | | | | | | successful ones), since we want to be sure to produce an informative warning message whenever the shell exits unexpectedly (whether it's successful or unsuccessful). This is important since it can be makes these kinds of issues easier to diagnose (otherwise the user might blame portage, when it's really the ebuild/eclasses that is at fault). svn path=/main/trunk/; revision=13311
* In config.setcpv(), don't add empty values to self.configdict['pkg'] forZac Medico2009-04-101-1/+3
| | | | | | keys that don't exist in the given dict. svn path=/main/trunk/; revision=13310
* Fix typo in docstring.Zac Medico2009-04-091-1/+1
| | | | svn path=/main/trunk/; revision=13309
* Make RecursiveFileLoader skip hidden directories, and only use a single statZac Medico2009-04-081-5/+10
| | | | | | call to check for existence and file type. svn path=/main/trunk/; revision=13298
* Fix some _doebuild_exit_status_check() calls so that they only happen whenZac Medico2009-04-071-14/+17
| | | | | | | | | | the bash process exits successfully (for consistency with usage elsewhere). When calling this functions, we're mainly concerned about false success, and we always want to allow things like using bashrc die hooks to clean up $PORTAGE_BUILDDIR for users that are building in tmpfs (in which case the exit status file may be removed before bash exits). svn path=/main/trunk/; revision=13296
* Add support to repoman for using layout.conf to control which repositoriesZac Medico2009-04-071-1/+11
| | | | | | | | | | are used to satisfy dependencies. Thanks to Alistair Bush <ali_bush@g.o> for the initial patch. 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=13295
* Replace references to portdbapi.eclassdb with appropriate references for theZac Medico2009-04-071-5/+6
| | | | | | specific repo. svn path=/main/trunk/; revision=13294
* Fix code in the portdbapi constructor to cache eclass_cache.cache instancesZac Medico2009-04-071-0/+1
| | | | | | where appropriate. svn path=/main/trunk/; revision=13293
* Add portdbapi support for a metadata/layout.conf file whichZac Medico2009-04-065-24/+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
* 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
* Add a "consumer" keyword parameter to the MetadataRegen constructor whichZac Medico2009-03-311-0/+1
| | | | | | | 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-301-0/+2
| | | | | | of packages are processed. svn path=/main/trunk/; revision=13255
* Bug #264291 - Fix inappropriate build dir creation for emerge --fetchonly.Zac Medico2009-03-301-1/+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
* Bug #243220 - Show messages in emerge.log when old versions are uninstalledZac Medico2009-03-281-5/+32
| | | | | | | | 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
* 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