summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* Tweak the installed masked code from bug #223447 so that it less noisyZac Medico2008-06-031-3/+4
| | | | | | | by suppressing masking messages for packages that haven't been pulled into the current dependency graph. svn path=/main/trunk/; revision=10553
* Fix typo.Zac Medico2008-06-031-1/+1
| | | | svn path=/main/trunk/; revision=10552
* When pruning the digests to optimize parallel-fetch, use a separate dictZac Medico2008-06-031-6/+9
| | | | | | | so that the original digests are still available if a file needs to be downloaded. svn path=/main/trunk/; revision=10551
* Use float mtime instead of int for finer granularity in vardbapi.match()Zac Medico2008-06-031-1/+1
| | | | | | cache staleness checks. svn path=/main/trunk/; revision=10550
* Add modification threshold for BlockerCache.flush(), to avoid wasteful IO.Zac Medico2008-06-031-6/+10
| | | | svn path=/main/trunk/; revision=10549
* Fix vardbapi.flush_cache() so that it only updates the cache when theZac Medico2008-06-031-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. svn path=/main/trunk/; revision=10548
* Add support for a PORTAGE_RO_DISTDIRS variable. When a given file does notZac Medico2008-06-031-1/+132
| | | | | | | | 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. svn path=/main/trunk/; revision=10547
* Fix typo.Zac Medico2008-06-011-1/+1
| | | | svn path=/main/trunk/; revision=10538
* Mention masked packages in another --resume message.Zac Medico2008-06-011-3/+3
| | | | svn path=/main/trunk/; revision=10535
* Reference depgraph.UnsatisfiedResumeDep instead of mydepgraph since theZac Medico2008-06-011-1/+1
| | | | | | latter can trigger an UnboundLocalError in some cases (^C for example). svn path=/main/trunk/; revision=10533
* Update the --skipfirst dropped packages warning to mention "masking"Zac Medico2008-06-011-1/+2
| | | | | | in addition to unsatisfied dependencies. svn path=/main/trunk/; revision=10532
* Update the UnsatisfiedResumeDep display to distinguish masked packagesZac Medico2008-06-011-6/+13
| | | | | | from those with unsatisfied dependencies. svn path=/main/trunk/; revision=10529
* Revert changes wrt argument atoms in the previous commit since it's notZac Medico2008-06-011-10/+8
| | | | | | really useful. svn path=/main/trunk/; revision=10528
* Make --skipfirst tolerate masked packages by dropping them (similar toZac Medico2008-06-011-10/+18
| | | | | | how it would drop a package that has an unsatisfied dependency). svn path=/main/trunk/; revision=10526
* Fix EditablePackageSet.update() to create Atom instances when necessary.Zac Medico2008-06-011-5/+9
| | | | svn path=/main/trunk/; revision=10525
* Make PackageSet._setAtoms() use existing Atom instances when available.Zac Medico2008-05-311-7/+12
| | | | svn path=/main/trunk/; revision=10523
* Fix create_world_atom() to take a Package instance in it's arguments.Zac Medico2008-05-311-11/+7
| | | | svn path=/main/trunk/; revision=10521
* Add some isvalidatom() test cases with "null" and missing category.Zac Medico2008-05-311-1/+11
| | | | svn path=/main/trunk/; revision=10519
* Fix TypeError: 'tuple' object does not support item assignmentZac Medico2008-05-311-0/+1
| | | | svn path=/main/trunk/; revision=10518
* * Tweak isvalidatom() to treat "null" category as valid, but missing categoryZac Medico2008-05-312-11/+21
| | | | | | | | | | | 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). svn path=/main/trunk/; revision=10516
* Clean up reference to parts of the first graph for --skipfirst.Zac Medico2008-05-311-2/+3
| | | | svn path=/main/trunk/; revision=10514
* Optimize the new --skipfirst code so that in only has to buildZac Medico2008-05-311-6/+35
| | | | | | | | | a new depgraph one time when there are unsatisfied deps. This works by recursively traversing the digraph to remove the parent packages whose deps become unsatisfied when their dependencies are pruned from the mergelist. svn path=/main/trunk/; revision=10513
* Fix PackageSet.findAtomForPackage() to find the most specific atom sinceZac Medico2008-05-301-4/+13
| | | | | | | it can affect behavior when deciding whether or not to add a slot atom to the world file. svn path=/main/trunk/; revision=10511
* 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. svn path=/main/trunk/; revision=10509
* 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. svn path=/main/trunk/; revision=10507
* Make the use_cache=0 listdir() implementation inside vardbapi.cpv_all()Zac Medico2008-05-301-1/+4
| | | | | | rains a PermissionDenied error when appropriate. svn path=/main/trunk/; revision=10505
* Pass a mutable config instance into get_masking_status(). CurrentlyZac Medico2008-05-301-1/+1
| | | | | | | it doesn't matter for installed packages but it's safer to be consistent to avoid accidental breakage in the future. svn path=/main/trunk/; revision=10503
* Make PackageSet.findAtomForPackage() just return the first atom foundZac Medico2008-05-301-3/+3
| | | | | | | since best_match_to_list() won't work correctly for atoms matched via PROVIDE. svn path=/main/trunk/; revision=10501
* Simplify None Package.slot handling in match_from_list().Zac Medico2008-05-301-2/+2
| | | | svn path=/main/trunk/; revision=10499
* Fix Atom attribute handling in get_operator() and dep_getslot() to accountZac Medico2008-05-301-4/+4
| | | | | | for None return values. svn path=/main/trunk/; revision=10497
* When dropping deps from the resume list, make sure that the loop can'tZac Medico2008-05-291-1/+2
| | | | | | be infinite. svn path=/main/trunk/; revision=10493
* Use Package.metadata instead of calling dbapi.aux_get().Zac Medico2008-05-291-2/+1
| | | | svn path=/main/trunk/; revision=10491
* Use a frozenset instead of a list for containment tests.Zac Medico2008-05-291-3/+2
| | | | svn path=/main/trunk/; revision=10489
* Fix typo.Zac Medico2008-05-291-1/+1
| | | | svn path=/main/trunk/; revision=10487
* Use izip() to eliminate temporary dict instances.Zac Medico2008-05-291-18/+19
| | | | svn path=/main/trunk/; revision=10485
* Clean up references to unsatisfied_parents.Zac Medico2008-05-291-1/+1
| | | | svn path=/main/trunk/; revision=10482
* Clean up reference to dropped_tasks when finished.Zac Medico2008-05-291-0/+1
| | | | svn path=/main/trunk/; revision=10481
* When --skipfirst drops packages due to unsatisfied dependencies, displayZac Medico2008-05-291-2/+13
| | | | | | a warning message with the list of dropped packages. svn path=/main/trunk/; revision=10480
* Clean up exception reference from previous commit.Zac Medico2008-05-291-0/+1
| | | | svn path=/main/trunk/; revision=10479
* Make --skipfirst handle missing dependencies by dropping the merge tasksZac Medico2008-05-291-11/+34
| | | | | | | | | | | | | that have missing dependencies. This involves creating an entirely new depgraph each time that a missing dependency is discovered. This isn't the most efficient approach but it's simple and it works well. This new behavior can server as a fix for bug #12768 by calling emerge --resume --skipfirst each time that emerge exits unsuccessfully. This was possible before, but now packages with unsatisfied dependencies will be properly identified and dropped from the list. svn path=/main/trunk/; revision=10478
* Save the content of CONFIG_MEMORY_FILE in dblink.treewalk() _before_Zac Medico2008-05-291-10/+6
| | | | | | | unmerging other instances, in order to avoid overwritting/undoing the pruning that's done during unmerge. svn path=/main/trunk/; revision=10476
* 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. svn path=/main/trunk/; revision=10474
* Filter out installed keyword masked packages when populatingZac Medico2008-05-291-1/+3
| | | | | | | RootConfig.visible_pkgs since otherwise such packages can trigger undesireable results inside depgraph._iter_atoms_for_pkg(). svn path=/main/trunk/; revision=10471
* Fix the code from bug #220341 so that it matches the atom against theZac Medico2008-05-291-2/+12
| | | | | | installed package, like it's supposed to. svn path=/main/trunk/; revision=10470
* Skip redundant Atom construction in select_package().Zac Medico2008-05-281-1/+2
| | | | svn path=/main/trunk/; revision=10468
* Update the fix from bug #220341 to protect USE deps from being neglected.Zac Medico2008-05-281-4/+13
| | | | svn path=/main/trunk/; revision=10467
* Bug #223447 - Adjust the "installed packages are masked" display to recognizeZac Medico2008-05-282-14/+49
| | | | | | | | | | 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. svn path=/main/trunk/; revision=10465
* Make set_term_size() handle the CommandNotFound exception if sttyZac Medico2008-05-281-2/+6
| | | | | | is missing for some reason. svn path=/main/trunk/; revision=10461
* Fix breakage due to frozenset being immutable.Zac Medico2008-05-271-2/+2
| | | | svn path=/main/trunk/; revision=10455
* Fix typo.Zac Medico2008-05-271-1/+1
| | | | svn path=/main/trunk/; revision=10453