summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* 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
* * Optimize metadata caching in pordbapi and bindbapi so that cache isZac Medico2008-04-081-18/+34
| | | | | | | | | never pulled for the same package twice. * Cache a Package instances constructed during package selection and reuse them during later package selections. (trunk r9741) svn path=/main/branches/2.1.2/; revision=9752
* Bug #197905 - Preserve order of ebuild messages even between differentZac Medico2008-04-081-5/+22
| | | | | | message types. (trunk r9726 and r9747) svn path=/main/branches/2.1.2/; revision=9748
* In dbapi.move_ent(), never assume that any of the expected metadataZac Medico2008-04-051-5/+6
| | | | | | entries exist (PF, CATEGORY, or *.ebuild). (trunk r9712) svn path=/main/branches/2.1.2/; revision=9722
* For better performace and consistency in package selection, merge theZac Medico2008-04-051-8/+0
| | | | | | CompositeDbapi code from trunk. svn path=/main/branches/2.1.2/; revision=9721
* Add missing str.upper() call for PORTAGE_FETCH_RESUME_MIN_SIZE. (trunk r9691)Zac Medico2008-04-031-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=9692
* If PORTAGE_FETCH_RESUME_MIN_SIZE is undefined or empty, silently useZac Medico2008-04-031-0/+3
| | | | | | the default. (trunk r9689) svn path=/main/branches/2.1.2/; revision=9690
* Implement a PORTAGE_FETCH_RESUME_MIN_SIZE variable that is useful forZac Medico2008-04-031-3/+57
| | | | | | | helping to ensure that small garbage files such as html 404 pages are properly discarded. (trunk r9687) svn path=/main/branches/2.1.2/; revision=9688
* In cpv_expand(), if the virtuals file contains a versioned atom (likeZac Medico2008-04-031-1/+5
| | | | | | | | the base profile currently has for virtual/pam), properly remove the operator and version from the atom before it is passed into dbapi.cp_list(). (trunk r9683) svn path=/main/branches/2.1.2/; revision=9684
* Handle a potential FileNotFound exception in new_protect_filename() whenZac Medico2008-04-021-3/+8
| | | | | | | the last ._cfg* file happens to be a broken symlink. Thanks to bonsaikitten for reporting. (trunk r9676:9678) svn path=/main/branches/2.1.2/; revision=9679
* Use pkgcmp() instead of == and best() for correctness in case of implicitZac Medico2008-04-011-2/+4
| | | | | | -r0. (trunk r9672) svn path=/main/branches/2.1.2/; revision=9673
* Remove some boolean logic that is obsolete now that the "selective" parameterZac Medico2008-04-011-4/+1
| | | | | | is passed into dep_zapdeps(). (trunk r9669) svn path=/main/branches/2.1.2/; revision=9671
* Exploid ascending order returned from dbapi.match() calls to avoid the needZac Medico2008-04-011-2/+4
| | | | | | to call best(). (trunk r9665) svn path=/main/branches/2.1.2/; revision=9670
* Bug #215308 - Cache the paths of known bad manifests to ensure that theZac Medico2008-04-011-1/+8
| | | | | | same broken manifest is never checked twice. (trunk r9658) svn path=/main/branches/2.1.2/; revision=9659
* When dblink.treewalk() queries for other packages in the same slot, filterZac Medico2008-03-301-2/+5
| | | | | | out old-style virtual matches since they are not desired. (trunk r9637) svn path=/main/branches/2.1.2/; revision=9640
* Fix typos. Thanks to Arfrever Frehtes Taifersar ArahesisZac Medico2008-03-301-1/+1
| | | | | | <Arfrever.FTA@GMail.Com>. (trunk r9632) svn path=/main/branches/2.1.2/; revision=9633
* Fix namespace typo.Zac Medico2008-03-301-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=9627
* Move the AUTOCLEAN code into dblink.treewalk since it's already partiallyZac Medico2008-03-301-4/+7
| | | | | | | | supported there anyway (for replacement of identical cpv). This has the benefit of guaranteeing that the order of installation and removal phases is always the same. (trunk r9621) svn path=/main/branches/2.1.2/; revision=9622
* For bugs #197810 and #215308, pass the depgraph's "selective" parameterZac Medico2008-03-301-1/+2
| | | | | | | down into dep_check() for better atom preference selection when handling virtuals and other disjunctive || dependencies. svn path=/main/branches/2.1.2/; revision=9610
* Bug #215240 - Use an alarm signal to implement a 60 second timeout inZac Medico2008-03-291-1/+12
| | | | | | finalize() in case send_mail() blocks indefinitely. (trunk r9588) svn path=/main/branches/2.1.2/; revision=9600
* Bug #214619 - Run dyn_package() and preinst_mask() from ${T} instead ofZac Medico2008-03-291-3/+6
| | | | | | | | | ${D} in order to avoid leaving gmon.out files in ${D} in case any tools were built with -pf in CFLAGS. Also, call preinst_mask() after all other functions so that INSTALL_MASK can be used to wipe out any gmon.out files created during previous functions. (trunk r9592) svn path=/main/branches/2.1.2/; revision=9595
* Bug #214619 - Add support for a PORTAGE_BINPKG_TAR_OPTS variable thatZac Medico2008-03-281-1/+2
| | | | | | | allows the user to specify tar command options for binary package creation. (trunk r9528) svn path=/main/branches/2.1.2/; revision=9580
* Bug #214879 - Fix FEATURES=-strict behavior so that distfiles digests areZac Medico2008-03-281-14/+15
| | | | | | always checked. (trunk r9519) svn path=/main/branches/2.1.2/; revision=9572
* Support ${HOST} substitution in "From" field. Thanks to wschlich.Zac Medico2008-03-282-0/+2
| | | | | | (trunk r9510) svn path=/main/branches/2.1.2/; revision=9570
* add @ to the list of invalid atom chars so sets with prefix aren'tZac Medico2008-03-281-1/+1
| | | | | | considered as atoms accidentally (trunk r9479) svn path=/main/branches/2.1.2/; revision=9560
* When in strict mode, make paren_reduce() detect missing whitespace aroundZac Medico2008-03-281-0/+8
| | | | | | | | | parenthesis tokens and raise an InvalidDependString exception. Strict mode is not enabled when handling installed packages, so this will only affect repoman and packages that haven't been installed yet. Thanks to zlin for reporting. (trunk r9471) svn path=/main/branches/2.1.2/; revision=9556
* Bug #42456 - When a checksum failure occurs during fetch, use a newZac Medico2008-03-281-5/+25
| | | | | | | | | PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS config variable to control how many mirrors should be tried before aborting the download. This type of behavior used to be enabled only in --fetchonly mode but now it's enabled for all fetch() calls. (trunk r9462:9466) svn path=/main/branches/2.1.2/; revision=9554
* * Optimize parallel-fetch to avoid redundant checksum verification.Zac Medico2008-03-281-1/+23
| | | | | | | * Add parallel-fetch to the default FEATURES since it is more efficient now. (trunk r9462) svn path=/main/branches/2.1.2/; revision=9553
* Make strip_empty() return a nedw list instead of working in-place. Thanks toZac Medico2008-03-281-4/+1
| | | | | | René Neumann <rene.neumann@necoro.net> for the suggestion. (trunk r9460) svn path=/main/branches/2.1.2/; revision=9552