summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Bug #225285 - Add a --skip-manifest option that disables all interactionZac Medico2008-06-191-1/+4
| | | | | | with the manifest. svn path=/main/branches/2.1.2/; revision=10719
* More eblank.v2.1.5.6Zac Medico2008-06-172-16/+1
| | | | svn path=/main/branches/2.1.2/; revision=10703
* Remove the rest of eblank.Zac Medico2008-06-172-2/+1
| | | | svn path=/main/branches/2.1.2/; revision=10702
* * Rename NEUTRAL color to BLANK for eblank.Zac Medico2008-06-173-3/+18
| | | | | | | | * Document the new BLANK code in color.map.5. * Implement python version of eblank for mod_echo. (trunk r10677) svn path=/main/branches/2.1.2/; revision=10678
* Add support for an new "eblank" elog function that shows a blank line.Zac Medico2008-06-172-1/+2
| | | | | | | | Consecutive eblank calls are all collapsed into a single blank line. Thanks to Joe Peterson <lavajoe@g.o> for this patch. (trunk r10675) svn path=/main/branches/2.1.2/; revision=10676
* Fix typo. (trunk r10673)Zac Medico2008-06-161-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=10674
* Tweak the config._accept_chost() regex. (trunk r10669)Zac Medico2008-06-161-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=10670
* Bug #223417 - Due to 1 second mtime granularity in < python-1.5, mtime checksZac Medico2008-06-161-22/+25
| | | | | | | | are not always sufficient to invalidate vardbapi caches. Therefore, the caches need to be actively invalidated when packages are added and removed. (trunk r10660) svn path=/main/branches/2.1.2/; revision=10667
* Add two new build log qa checks, suggested by Diego Pettenò:Zac Medico2008-06-161-1/+53
| | | | | | | | | | | * Detect automake "maintainer mode". See http://www.gentoo.org/proj/en/qa/autofailure.xml for more information. * Detect "Unrecognized options" messages from configure scripts. (trunk r10652) svn path=/main/branches/2.1.2/; revision=10663
* Fix config._accept_chost_re so it's only an instance variable.Zac Medico2008-06-151-1/+1
| | | | | | (trunk r10656) svn path=/main/branches/2.1.2/; revision=10657
* Add support for and ACCEPT_CHOSTS variable that controls masking behaviorZac Medico2008-06-151-0/+21
| | | | | | | | | for binary packages wrt CHOST. The variable is a space separated list of chosts. It support regular expressions, so if the actual chost contains any special characters then the user must escape them when setting ACCEPT_CHOSTS. (trunk r10654) svn path=/main/branches/2.1.2/; revision=10655
* Add another sanity check in the owners cache. (trunk r10640)Zac Medico2008-06-101-1/+4
| | | | svn path=/main/branches/2.1.2/; revision=10641
* Use isinstance() instead of handling TypeError. (trunk r10638)Zac Medico2008-06-101-4/+2
| | | | svn path=/main/branches/2.1.2/; revision=10639
* Bug #225285 - Allow digestcheck() to succeed when the Manifest is empty andZac Medico2008-06-101-0/+12
| | | | | | strict mode is disabled. (trunk r10636) svn path=/main/branches/2.1.2/; revision=10637
* Add some sanity checks and error tolerance in the owners cache.Zac Medico2008-06-101-1/+15
| | | | | | (trunk r10633) svn path=/main/branches/2.1.2/; revision=10634
* Fix typo. (trunk r10631)Zac Medico2008-06-101-2/+1
| | | | svn path=/main/branches/2.1.2/; revision=10632
* Fix typo. (trunk r10628)Zac Medico2008-06-101-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=10629
* Fix missing initialization. (trunk r10626)Zac Medico2008-06-091-0/+1
| | | | svn path=/main/branches/2.1.2/; revision=10627
* Add CONTENTS indexing support for optimization of owner lookups. TheZac Medico2008-06-091-50/+243
| | | | | | | | | | | | | | | | | | | | vardbapi cache maintains a hash table (inside vdb_metadata.pickle) that serves to index package contents by mapping the basename of file to a list of possible packages that own it. This is used to optimize owner lookups by narrowing the search down to a smaller number of packages. It increases the size of vdb_metadata.pickle by approximately 30% and it's used in the following cases: * When an unexpected file collision occurs (whether or not collision-protect is enabled) * `emerge <filename>` * `portageq owners` (trunk r10609) svn path=/main/branches/2.1.2/; revision=10622
* When inside fakeroot, directories with portage's gid appearZac Medico2008-06-091-2/+9
| | | | | | | | to have root's gid. Therefore, use root's gid instead of portage's gid to avoid spurrious permissions adjustments when inside fakeroot. (trunk r10608) svn path=/main/branches/2.1.2/; revision=10620
* Bug #225285 - Allow digestcheck() to succeed when the Manifest is missingZac Medico2008-06-091-0/+2
| | | | | | and strict mode is disabled. (trunk r10604) svn path=/main/branches/2.1.2/; revision=10619
* Make portdbapi.aux_get() return float type for _mtime_. (trunk r10603)Zac Medico2008-06-091-1/+4
| | | | svn path=/main/branches/2.1.2/; revision=10618
* Add vardbapi.aux_get() support for an "_mtime_" value which corresponds toZac Medico2008-06-091-11/+19
| | | | | | | | | the installed package directory's mtime (numeric value from stat result). This value can be used to validate indexes or caches used in the optimization of vdb query operations for various types of package metadata such as dependencies and file contents. (trunk r10586) svn path=/main/branches/2.1.2/; revision=10610
* Inside, create_trees(), pass target_root="/" into the config constructorZac Medico2008-06-071-1/+1
| | | | | | when necessary to override the setting in make.conf. (trunk r10598) svn path=/main/branches/2.1.2/; revision=10599
* Validate ROOT from make.conf. (trunk r10596)Zac Medico2008-06-071-0/+2
| | | | svn path=/main/branches/2.1.2/; revision=10597
* Bug #224713 - Avoid TypeError when make.conf is missing:v2.1.5.4Zac Medico2008-06-041-0/+2
| | | | | | | TypeError: argument of type 'NoneType' is not iterable (trunk r10582) svn path=/main/branches/2.1.2/; revision=10583
* Use sets for more accurate cache modification counts in BlockerCache andZac Medico2008-06-041-4/+4
| | | | | | vardbapi. (trunk r10578) svn path=/main/branches/2.1.2/; revision=10579
* Update --depclean and package.provided docs to indicate interactionZac Medico2008-06-041-16/+31
| | | | | | between them. (trunk r10563) svn path=/main/branches/2.1.2/; revision=10573
* Use float mtime instead of int for finer granularity in vardbapi.match()Zac Medico2008-06-041-1/+1
| | | | | | cache staleness checks. (trunk r10550) svn path=/main/branches/2.1.2/; revision=10570
* Fix vardbapi.flush_cache() so that it only updates the cache when theZac Medico2008-06-041-4/+8
| | | | | | | | number of uncached packages reaches a certain threshold (currently 5). The cache file can be several megabytes in size, so updating it for every vdb change is wasteful. (trunk r10548) svn path=/main/branches/2.1.2/; revision=10568
* Fit typo. (trunk r10566)Zac Medico2008-06-041-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=10567
* Add support for a PORTAGE_RO_DISTDIRS variable. When a given file does notZac Medico2008-06-041-4/+140
| | | | | | | | | exist in DISTDIR, search for the file in this list of directories. Search order is from left to right. Note that the current implementation works by creating a symlink inside DISTDIR, but that may change in the future. (trunk r10547, r10550:10552, and r10564) svn path=/main/branches/2.1.2/; revision=10565
* * Tweak isvalidatom() to treat "null" category as valid, but missing categoryZac Medico2008-05-311-9/+20
| | | | | | | | | | | | as invalid (previously both where treated as invalid). * Fix a spot inside emerge's unmerge() function that sometimes generates invalid atoms by adding an unnecessary "=" to the front. Even when in cases that resulted in a valid atom here, adding the "=" was redundant because dep_expand() does that automatically now (for backward compat). (trunk r10516) svn path=/main/branches/2.1.2/; revision=10517
* Now that dbapi._iter_match() is guaranteed to return a real iterator withZac Medico2008-05-301-4/+4
| | | | | | | a next() method, we can just call next() and handle StopIteration. (trunk r10509) svn path=/main/branches/2.1.2/; revision=10510
* For consistency, make sure that a normal iterator is always returnedZac Medico2008-05-301-1/+1
| | | | | | | from dbapi._iter_match() (and never a list). This way the caller can be sure that the returned object has a next() method. (trunk r10507) svn path=/main/branches/2.1.2/; revision=10508
* Make the use_cache=0 listdir() implementation inside vardbapi.cpv_all()Zac Medico2008-05-301-1/+4
| | | | | | raise a PermissionDenied error when appropriate. (trunk r10505) svn path=/main/branches/2.1.2/; revision=10506
* Simplify None Package.slot handling in match_from_list(). (trunk r10499)Zac Medico2008-05-301-2/+2
| | | | svn path=/main/branches/2.1.2/; revision=10500
* Fix Atom attribute handling in get_operator() and dep_getslot() to accountZac Medico2008-05-301-4/+4
| | | | | | for None return values. (trunk r10497) svn path=/main/branches/2.1.2/; revision=10498
* Save the content of CONFIG_MEMORY_FILE in dblink.treewalk() _before_Zac Medico2008-05-291-11/+6
| | | | | | | unmerging other instances, in order to avoid overwritting/undoing the pruning that's done during unmerge. (trunk r10476) svn path=/main/branches/2.1.2/; revision=10477
* Make the unmerge time CONFIG_MEMORY_FILE pruning slightly more aggressive,Zac Medico2008-05-291-3/+2
| | | | | | | so that anything not claimed by another package in the same slot is pruned. (trunk r10474) svn path=/main/branches/2.1.2/; revision=10475
* Bug #223447 - Adjust the "installed packages are masked" display to recognizeZac Medico2008-05-281-3/+3
| | | | | | | | | | packages that are masked by keywords and are eligible for uninstallation by depclean. This is a workaround for the fact that depclean may fail to recognize that the package is eligible for uninstall due to differences in visibility filtering which can lead to differences in || dep evaluation. TODO: Share visibility code to fix this inconsistency. (trunk r10465) svn path=/main/branches/2.1.2/; revision=10466
* Make set_term_size() handle the CommandNotFound exception if sttyZac Medico2008-05-281-2/+6
| | | | | | is missing for some reason. (trunk r10461) svn path=/main/branches/2.1.2/; revision=10464
* Make config._init_dirs() preserver /tmp and /var/tmp permissions ifZac Medico2008-05-271-6/+13
| | | | | | | those directories already exist. This gives freedom to the user to adjust permissions to suit their taste. (trunk r10451:10453) svn path=/main/branches/2.1.2/; revision=10454
* Don't silently swallow instances of UnpicklingError since they are easilyZac Medico2008-05-261-3/+10
| | | | | | | triggered by storing instances of custom classes in a pickle. (trunk r10432:10434) svn path=/main/branches/2.1.2/; revision=10435
* * Enable config.setcpv() to use a Package instance in place of a cpv.Zac Medico2008-05-261-1/+11
| | | | | | | | * Make depgraph._select_package() pass Package instances into setcpv() calls. * Enable the Package constructor to use an iterable for metadata items. (trunk r10427) svn path=/main/branches/2.1.2/; revision=10428
* Fix a broken reference to the Package.cpv_slot attribute. (trunk r10425)Zac Medico2008-05-261-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=10426
* * Add support for Package instances in match_from_list().Zac Medico2008-05-251-7/+29
| | | | | | | * Remove the Package.cpv_slot attribute. (trunk r10418:10423) svn path=/main/branches/2.1.2/; revision=10424
* Create Atom instances when validating atoms inside _expand_new_virtuals().Zac Medico2008-05-251-4/+9
| | | | | | (trunk r10396) svn path=/main/branches/2.1.2/; revision=10412
* Remove redundant SLOT dep code in portdbapi.xmatch() since it's nowZac Medico2008-05-251-12/+2
| | | | | | handled by dbapi._iter_match(). (trunk r10410) svn path=/main/branches/2.1.2/; revision=10411
* Fix paren_reduce() so that it appropriately raises an InvalidDependString()Zac Medico2008-05-251-1/+5
| | | | | | in some cases, instead of a nonsense ValueError. (trunk r10393) svn path=/main/branches/2.1.2/; revision=10409