summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Create Atom instances earlier to avoid redundant validation.Zac Medico2008-05-301-6/+7
| | | | svn path=/main/trunk/; revision=10495
* 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 the new behavior from bug #222439 conditional on EAPI being somethingZac Medico2008-05-281-1/+2
| | | | | | other than 0 or 1. svn path=/main/trunk/; revision=10462
* 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
* Convert doman to use bash's =~ operator instead of calling egrep.Zac Medico2008-05-281-1/+1
| | | | svn path=/main/trunk/; revision=10460
* Bug #222439 - Add doman support for foo.lang.N filenames. Behavior isZac Medico2008-05-271-2/+9
| | | | | | | | | | | | as follows: foo.1 -> man/man1/foo.1 foo.lang.1 -> man/lang/man1/foo.1 Thanks to Yuri Vasilevski for the initial patch. I've modified it to use bash's =~ operator and corresponding $BASH_REMATCH array. svn path=/main/trunk/; revision=10459
* 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
* 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. svn path=/main/trunk/; revision=10452
* Fix a typo from the previous commit.Zac Medico2008-05-271-1/+1
| | | | svn path=/main/trunk/; revision=10450
* Use new Package.use and iuse attributes to avoid extra split() calls.Zac Medico2008-05-271-26/+16
| | | | svn path=/main/trunk/; revision=10448
* Set Atom.use = None when there are no USE deps (instead of the emptyZac Medico2008-05-271-0/+2
| | | | | | tuple returned from dep_getusedeps()). svn path=/main/trunk/; revision=10447
* Repoman only checks IUSE for USE deps, so don't evaluate conditional USE depsZac Medico2008-05-271-1/+5
| | | | | | in this case. svn path=/main/trunk/; revision=10446
* Fix dbapi._iter_match_use() to escape IUSE values when necessary.Zac Medico2008-05-271-1/+1
| | | | svn path=/main/trunk/; revision=10445
* Fix breakage in the BlockerDB constructor.Zac Medico2008-05-271-1/+1
| | | | svn path=/main/trunk/; revision=10443
* Define __slots__ for the _use_dep class.Zac Medico2008-05-271-0/+4
| | | | svn path=/main/trunk/; revision=10441
* Fix USE dep matching support in match_from_list() so that it checksZac Medico2008-05-272-45/+97
| | | | | | | | | to make sure the package supports all specified IUSE. This involves updating all Package, FakeVartree, and BlockerDB constructor arguments to implement a Package.root_config attribute that's used to access implicit IUSE. svn path=/main/trunk/; revision=10440
* Bug #223685 - Use the finally clause to collect elog messages justZac Medico2008-05-271-3/+2
| | | | | | before releasing the build dir lock, so they never get missed. svn path=/main/trunk/; revision=10438
* Add some debug output for arguments and their associated atoms, to help inZac Medico2008-05-271-1/+8
| | | | | | debugging problems similar to bug #223735. svn path=/main/trunk/; revision=10436
* Don't silently swallow instances of UnpicklingError since they are easilyZac Medico2008-05-261-2/+5
| | | | | | triggered by storing instances of custom classes in a pickle. svn path=/main/trunk/; revision=10434
* Don't silently swallow instances of UnpicklingError since they are easilyZac Medico2008-05-262-3/+11
| | | | | | triggered by storing instances of custom classes in a pickle. svn path=/main/trunk/; revision=10433