summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Avoid triggering "cPickle.UnpicklingError: Global and instance picklesZac Medico2008-05-261-3/+13
| | | | | | | are not supported." errors that are triggered when the pickle contains custom classes. svn path=/main/trunk/; revision=10431
* Skip source_all_bashrcs() when $EBUILD_PHASE is not set.Zac Medico2008-05-261-0/+1
| | | | svn path=/main/trunk/; revision=10429
* * Enable config.setcpv() to use a Package instance in place of a cpv.Zac Medico2008-05-262-25/+37
| | | | | | | * Make depgraph._select_package() pass Package instances into setcpv() calls. * Enable the Package constructor to use an iterable for metadata items. svn path=/main/trunk/; revision=10427
* Fix a broken reference to the Package.cpv_slot attribute.Zac Medico2008-05-261-1/+1
| | | | svn path=/main/trunk/; revision=10425
* Fix breakage in Package constructor attribute initialization.Zac Medico2008-05-251-1/+3
| | | | svn path=/main/trunk/; revision=10423
* Remove unused code.Zac Medico2008-05-251-5/+0
| | | | svn path=/main/trunk/; revision=10422
* Use the metadata wrapper to initialize Package slot and use attributes.Zac Medico2008-05-251-5/+3
| | | | svn path=/main/trunk/; revision=10421
* Remove the Package.cpv_slot attribute.Zac Medico2008-05-251-9/+2
| | | | svn path=/main/trunk/; revision=10420
* * Add support for Package instances and USE deps in match_from_list().Zac Medico2008-05-253-25/+100
| | | | | | * Add USE dep matching support to depgraph._iter_atoms_for_pkg(). svn path=/main/trunk/; revision=10419
* * Fix PackageSet.findAtomForPackage() to take a Package instance asZac Medico2008-05-252-36/+17
| | | | | | | | an argument. * Simplify PackageSet.findAtomForPackage() by implementing it on top of iterAtomsForPackage(). svn path=/main/trunk/; revision=10415
* Facilitate creation of Atom instances in a few obvious places:Zac Medico2008-05-252-9/+12
| | | | | | | * PackageSet._setAtoms() * AtomArg and PackageArg constructors. svn path=/main/trunk/; revision=10413
* Remove redundant SLOT dep code in portdbapi.xmatch() since it's nowZac Medico2008-05-251-11/+2
| | | | | | handled by dbapi._iter_match(). svn path=/main/trunk/; revision=10410
* Remove category validation cruft from catpkgsplit().Zac Medico2008-05-251-5/+1
| | | | svn path=/main/trunk/; revision=10400
* Fix isvalidatom() so tests pass, and add a USE deps case to the tests.Zac Medico2008-05-252-8/+12
| | | | svn path=/main/trunk/; revision=10399
* * Fix dep_getusedeps() test to work with tuples.Zac Medico2008-05-252-4/+5
| | | | | | * Add test cases for conditional USE deps. svn path=/main/trunk/; revision=10398
* Add support for conditionals inside USE dependencies. This is usefulZac Medico2008-05-252-8/+60
| | | | | | | | | | | | | | | | for cases in which the package satisfying a dependency should have identical or opposite flag state relative to the parent package. Conditionals are evaluated as follows: parent state conditional result x [x?] [x] -x [x?] [-x] x [-x?] [-x] -x [-x?] [x] svn path=/main/trunk/; revision=10396
* Fix broken dep_getusedeps() cache behavior so that it returns theZac Medico2008-05-241-2/+3
| | | | | | correct type. svn path=/main/trunk/; revision=10395
* For dep_expand() backward compatibility, handle atoms with missing '='Zac Medico2008-05-241-2/+9
| | | | | | | prefix which did not raise an error here before the portage.dep.Atom class was introduced. svn path=/main/trunk/; revision=10394
* Fix paren_reduce() so that it appropriately raises an InvalidDependString()Zac Medico2008-05-241-1/+5
| | | | | | in some cases, instead of a nonsense ValueError. svn path=/main/trunk/; revision=10393
* Fix paren_reduce() so that it appropriately raises an InvalidDependString()Zac Medico2008-05-241-0/+3
| | | | | | in some cases, instead of a nonsense AttributeError. svn path=/main/trunk/; revision=10392
* Fix use_reduce() so that it appropriately raises an InvalidDependStringZac Medico2008-05-241-1/+1
| | | | | | | instead of an IndexError in some cases (avoid IndexError by using slice notation). svn path=/main/trunk/; revision=10391
* Bug #223417 - Make the vardbapi.cpv_all() use_cache parameter usefulZac Medico2008-05-242-2/+19
| | | | | | | | for forcing direct os.listdir() calls. This is more of an issue now that these listdir() calls are frequently triggered when merging packages (due to things like blocker and preserve-libs handling). svn path=/main/trunk/; revision=10390
* Bug #223417 - use floating point mtime for finer grained validation inZac Medico2008-05-241-1/+1
| | | | | | | cachedir(). svn path=/main/trunk/; revision=10389