summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* * In vardbapi.cpv_all() use catpkgsplit() for validation since that's whatZac Medico2008-05-051-4/+10
| | | | | | | | | with cp_all() uses. * Use the listdir() dirsonly=1 parameter to avoid unnecessary stat calls via os.path.isdir() (trunk r10204) svn path=/main/branches/2.1.2/; revision=10205
* Handle a potential InvalidData exception in vardbapi.cp_all(). (trunk r10202)Zac Medico2008-05-051-1/+5
| | | | svn path=/main/branches/2.1.2/; revision=10203
* Add "package" to EBUILD_PHASES since it's possible for einfo to be calledZac Medico2008-05-051-1/+2
| | | | | | by install_mask() during that phase. (trunk r10198) svn path=/main/branches/2.1.2/; revision=10199
* Bug #219286 - Whitelist INSTALL_MASK so that it works properly for binaryZac Medico2008-05-051-0/+5
| | | | | | | | packages. Also, filter INSTALL_MASK when saving or loading environment.bz2. This also applies to PKG_INSTALL_MASK and DOC_SYMLINKS_DIR, so add them too. (trunk r10195) svn path=/main/branches/2.1.2/; revision=10197
* Bug #220171 - Filter out 'lost+found' directories in vardbapi.cpv_all()Zac Medico2008-05-051-1/+9
| | | | | | | in order to avoid fatal 'Permission denied' errors. Currently, CVS and names beginning with '.' are also filtered. (trunk r10192) svn path=/main/branches/2.1.2/; revision=10193
* In the package uninstall sanity check, use RDEPEND from the currentlyZac Medico2008-05-041-0/+1
| | | | | | | running 'sys-apps/portage' instance to create a set of protected atoms. (trunk r10184) svn path=/main/branches/2.1.2/; revision=10185
* check if PORTAGE_TMPDIR is mounted readonly/noexec (bug #219957)Zac Medico2008-05-021-0/+28
| | | | | | (trunk r10069) svn path=/main/branches/2.1.2/; revision=10076
* Bug #219918 - Remove the last traces of PORTAGE_TMPFS.Zac Medico2008-05-011-8/+0
| | | | svn path=/main/branches/2.1.2/; revision=10061
* Fix 2 more types.InstanceType comparisons that are broken byZac Medico2008-04-301-2/+2
| | | | | | the transition of dbapi to new-style classes. (trunk r6188) svn path=/main/branches/2.1.2/; revision=10049
* * Fix dep_check() so that it doesn't expand virtual blockers since theZac Medico2008-04-301-0/+6
| | | | | | | | | | | | | | | | | un-expanded virtual atom is more useful for maintaining a cache of blocker atoms. * Expand virtual blockers in depgraph.validate_blockers(), since it's not done by dep_check() anymore. * If blocker data from the graph is available, use it to validate the blocker cache and update the cache if it seems invalid. * Make BlockerCache._load() more tolerant to installs/uninstalls so so that cache isn't rebuilt so often. (trunk r10040:10043) svn path=/main/branches/2.1.2/; revision=10044
* For bug #211833, be explicit that the pkg_prerm() and pkg_postrm() removalZac Medico2008-04-281-1/+2
| | | | | | phases are the ones that are skipped. (trunk r10024) svn path=/main/branches/2.1.2/; revision=10025
* As suggested by Chr. Schaefer in bug #211833, comment #15, note thatZac Medico2008-04-281-5/+7
| | | | | | | removal of the environment.bz2 file is preferred since it may allow the removal phases to execute successfully. (trunk r10022) svn path=/main/branches/2.1.2/; revision=10023
* Try to format the elog message better for bug #211833, separatingZac Medico2008-04-281-9/+23
| | | | | | paragraphs for easier reading. (trunk r10018) svn path=/main/branches/2.1.2/; revision=10019
* Use write_atomic() for manifest updates. (trunk r10016)Zac Medico2008-04-281-4/+2
| | | | svn path=/main/branches/2.1.2/; revision=10017
* Bug #211833 - When an ebuild removal phase fails, notify the user thatZac Medico2008-04-281-1/+8
| | | | | | | | removal of environment.bz2 file will cause the ebuild to be sourced and eclasses from the current portage tree will be used when necessary. (trunk r10009) svn path=/main/branches/2.1.2/; revision=10013
* Create a digraph.difference_update() method and use it to amortize theZac Medico2008-04-271-0/+20
| | | | | | cost of removing nodes from the digraph.order list. (trunk r9992) svn path=/main/branches/2.1.2/; revision=9993
* Use digraphs to clean up blocker reference counting in the depgraph.Zac Medico2008-04-271-0/+22
| | | | | | (trunk r9981) svn path=/main/branches/2.1.2/; revision=9987
* Bug #172812 - Automatically uninstall packages to avoid blocker conflicts.Zac Medico2008-04-241-0/+1
| | | | | | (trunk r9944:9956) svn path=/main/branches/2.1.2/; revision=9957
* Make dir_get_metadata() retry if a httplib.ResponseNotReady exceptionZac Medico2008-04-221-0/+8
| | | | | | occurs. (trunk r9943) svn path=/main/branches/2.1.2/; revision=9944
* Bug #218439 - Improve alignment in short emerge --help options output.Zac Medico2008-04-211-5/+6
| | | | | | (trunk r9939:9941) svn path=/main/branches/2.1.2/; revision=9942
* * Make portdbapi.aux_get() automatically pull pre-generated metadataZac Medico2008-04-211-21/+42
| | | | | | | | | | | | | | | | | | | | | | | | directly from the metadata/cache/ directory when metadata-transfer is not enabled in FEATURES. This makes all cache modules behave similar to existing metadata_overlay module, except when FEATURES="metadata-transfer" has been explicitly enabled. * Remove metadata-transfer from FEATURES in make.globals so that it's no longer enabled by default. Users will be happy about this since the "Updating Portage cache" part of emerge --sync can be more time consuming than the rsync run itself. It's also nicer when when using PORTDIR over nfs or bind mounted in a chroot since there's no need to run emerge --metadata. * Update FEATURES="metadata-transfer" docs to warn users of the rsync tree to modify eclases in PORTDIR_OVERLAY if necessary instead of doing it directly in the rsync tree. * Relevant updates to /etc/portage/modules docs. (trunk r9930) svn path=/main/branches/2.1.2/; revision=9931
* Bug #218559 - Make portdbapi automatically add sandbox write access toZac Medico2008-04-201-1/+10
| | | | | | | self.depcachedir when appropriate. This makes the portageq blanket sandbox exemption unnecessary. (trunk r9928) svn path=/main/branches/2.1.2/; revision=9929
* Make the ccache userpriv permission check from bug #162542 less sensitiveZac Medico2008-04-181-3/+1
| | | | | | | by skipping permission checks on files and just checking the directories. (trunk r9922) svn path=/main/branches/2.1.2/; revision=9923
* Remove redundant version sorting in _expand_new_virtuals() since theZac Medico2008-04-161-15/+6
| | | | | | dbapi match results are already sorted. (trunk r9920) svn path=/main/branches/2.1.2/; revision=9921
* Fix portdbapi.getfetchlist() so that it doesn't unnecessarily calculateZac Medico2008-04-161-1/+1
| | | | | | USE when the "all" parameter is True. (trunk r9918) svn path=/main/branches/2.1.2/; revision=9919
* If the mysettings parameter is not passed in to portdbapi.getfetchlist()Zac Medico2008-04-161-1/+1
| | | | | | | then substitue self.doebuild_settings since that one is mutable which is necessary in case setcpv() needs to be called. (trunk r9916) svn path=/main/branches/2.1.2/; revision=9917
* Bug #217905 - Fix portdbapi.getfetchlist() to correctly calculateZac Medico2008-04-161-1/+2
| | | | | | USE when the useflags parameter is not passed in. (trunk r9914) svn path=/main/branches/2.1.2/; revision=9915
* Inside dblink.unmerge(), call self.updateprotect() just in case anythingZac Medico2008-04-151-0/+1
| | | | | | has changed since the dblink instance was constructed. (trunk r9910) svn path=/main/branches/2.1.2/; revision=9911
* Add support to depgraph._select_atoms() to take a "parent" parameterZac Medico2008-04-151-1/+38
| | | | | | | | | | | | and use that to try and avoid unresolvable direct circular dependencies when necessary. Also, make atom selection more consistent with the graph to solve some cases of bug #1343. This improves the fix from bug #141118 to work in cases when a virtual is not yet installed but it has been pulled into the graph. For example, see the case of Bug #163801#c17, where we want kaffe to satisfy virtual/jdk-1.4 without an extra jvm being pulled in unnecessarily. (trunk r9901) svn path=/main/branches/2.1.2/; revision=9903
* In config.setcpv() and regenerate(), replace str.startswith() calls withZac Medico2008-04-141-5/+9
| | | | | | | slice comparison. It's not pretty but performance is critical in this section of code and there is a measurable performance difference. (trunk r9896) svn path=/main/branches/2.1.2/; revision=9897
* Make movefile() tolerant to EPERM errors that can be raised from utime()Zac Medico2008-04-131-5/+16
| | | | | | | calls. Instead of failing, use stat() to return the mtime if possible. (trunk r9863:9865) svn path=/main/branches/2.1.2/; revision=9875
* Fix the filtering for bug #215016:Zac Medico2008-04-121-6/+13
| | | | | | | | * fix broken comparison for he iuse filtering * filter out any duplicates that variable may contain (trunk r9858) svn path=/main/branches/2.1.2/; revision=9859
* * Optimize config.setcpv() to return early if IUSE has not changed sinceZac Medico2008-04-121-1/+9
| | | | | | | | | | the previous setcpv() call. * Add EBUILD_PHASE to the blacklisted variables list. (trunk r9854) svn path=/main/branches/2.1.2/; revision=9855
* Bug #215016 - When transforming of USE flags to USE_EXPAND variables,Zac Medico2008-04-121-115/+88
| | | | | | | | filter out flags that aren't considered to be part of IUSE or implicit IUSE. This patch moves all IUSE dependent code from config.regenerate() to config.setcpv(). (trunk r9852) svn path=/main/branches/2.1.2/; revision=9853
* Make binarytree.prevent_collision() adjust permissions on directoriesZac Medico2008-04-121-0/+10
| | | | | | | and raise a PermissionDenied error if the required directories is not writable. (trunk r9850) svn path=/main/branches/2.1.2/; revision=9851
* Rename the undocumented --conistent option to --complete-graph and addZac Medico2008-04-111-1/+14
| | | | | | some docs. (trunk r9846) svn path=/main/branches/2.1.2/; revision=9847
* Make file_get() redirect FETCHCOMMAND output to stdout just likeZac Medico2008-04-111-1/+6
| | | | | | portage.fetch() does. Thanks to Ramereth for reporting. (trunk r9844) svn path=/main/branches/2.1.2/; revision=9845
* Fix 'undefined name' errors found by pyflakes. (trunk r9842)Zac Medico2008-04-111-3/+3
| | | | svn path=/main/branches/2.1.2/; revision=9843
* When dep_check() expands new-style virtuals, use USE flags from aux_getZac Medico2008-04-111-2/+11
| | | | | | | | calls to evaluate any conditionals that the depstrings might contain. This works properly for ebuilds now that aux_get() is backed by Package instances containing the correct USE. (trunk r9838:9840) svn path=/main/branches/2.1.2/; revision=9841
* Make doebuild() bail out early with a PermissionDenied error if thereZac Medico2008-04-111-4/+9
| | | | | | is no write access to $PKGDIR. (trunk r9837) svn path=/main/branches/2.1.2/; revision=9838
* Remove all calls to config.load_infodir() since it doesn't seemZac Medico2008-04-111-7/+0
| | | | | | | to server any purpose now that the complete environment is loaded from environment.bz2. (trunk r9833:9835) svn path=/main/branches/2.1.2/; revision=9836
* In config.setcpv() and load_infodir(), always set known good valuesZac Medico2008-04-111-2/+14
| | | | | | | for CATEGORY and PF, since corruption of these can cause problems. (trunk r9832) svn path=/main/branches/2.1.2/; revision=9833
* Copy group mode bits from $PKGDIR when creating subdirectories.Zac Medico2008-04-111-28/+26
| | | | | | (trunk r9827) svn path=/main/branches/2.1.2/; revision=9828
* Tweak --buildpkgonly and fakeroot logic so that --buildpkgonly can beZac Medico2008-04-111-2/+4
| | | | | | | used by a non-root user to build binary packages with fakeroot. (trunk r9825) svn path=/main/branches/2.1.2/; revision=9826
* Bug #217122 - When waiting for a parallel-fetch download to complete,Zac Medico2008-04-101-2/+9
| | | | | | | show a more friendly and informative message. (trunk r9815) svn path=/main/branches/2.1.2/; revision=9816
* Fix a potential TypeError.Zac Medico2008-04-091-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=9781
* Create a new depgraph._dep_expand() method for select_files() to expandZac Medico2008-04-091-2/+2
| | | | | | atoms that have no category. (trunk r9765) svn path=/main/branches/2.1.2/; revision=9768
* Handle issues with newlines in elog messages that can trigger an unhandledZac Medico2008-04-091-3/+11
| | | | | | | | | | ValueError to be raised from a split() call inside collect_ebuild_messages(): * Use \0 to delimit messages, so that that elog messages containing newlines are handled correctly. * Handle a potential ValueError when splitting the message type. (trunk r9763) svn path=/main/branches/2.1.2/; revision=9764
* Bug #162542 - When checking permissions inside CCACHE_DIR for compatibilityZac Medico2008-04-081-4/+26
| | | | | | | with FEATURES=userpriv, check the permissions on files inside the directory to decide whether to fix the permissions. (trunk r9759) svn path=/main/branches/2.1.2/; revision=9760
* Merge improved argument handling and other general depgraph improvementsZac Medico2008-04-081-1/+3
| | | | | | from trunk. svn path=/main/branches/2.1.2/; revision=9754