summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/Package.py
Commit message (Collapse)AuthorAgeFilesLines
* Only initialize Package.inherited to an empty set when it is None.Zac Medico2010-09-141-1/+2
|
* Ensure that Package.inherited is always initialized, even if there is noZac Medico2010-09-141-0/+1
| | | | INHERITED metadata available (like for binary packages).
* Make Package.metadata.defined_phases return all possible phases whenZac Medico2010-09-091-1/+11
| | | | | DEFINED_PHASES is undefined. This makes it easy to do containment checks to see if it's safe to skip execution of a given phase.
* Fix Package._validate_deps() to pass matchall=True to use_reduce().Zac Medico2010-08-271-4/+4
|
* Use InvalidDependString import instead ofZac Medico2010-08-271-6/+6
| | | | portage.exception.InvalidDependString.
* Use Package._metadata_exception() to handle invalid LICENSE, PROPERTIES,Zac Medico2010-08-271-12/+22
| | | | | PROVIDE, and RESTRICT, and generate IUSE.missing errors for repoman when appropriate.
* Add a IUSE.missing repoman category for packages that have a USEZac Medico2010-08-261-22/+25
| | | | | | conditional which references a flag that is not listed in IUSE. Also split out a Package._metadata_exception() method to handle IUSE.missing for *DEPEND and SRC_URI.
* Bug #334365 - Selectively ignore invalid metadata of installed packagesZac Medico2010-08-261-5/+17
| | | | | | | | | | in cases when it's irrelevant (should re-evaluate these when new EAPIs are deployed): * EAPI.incompatible IUSE defaults * EAPI.incompatible *DEPEND * *DEPEND conditionals missing from IUSE * SRC_URI.syntax
* Bug #334365 - When depgraph.display_problems() shows the messageZac Medico2010-08-261-11/+20
| | | | | | about masked installed packages, customize the InvalidDependString display to show the path of the *DEPEND file that contains the invalid dependency.
* Fix Package._visible() to mask installed packages with invalid metadata.Zac Medico2010-08-261-1/+3
|
* Make the Atom class add 'EAPI.incompatible' category attributes toZac Medico2010-08-261-1/+12
| | | | | | | | InvalidAtom exceptions, make use_reduce() raise InvalidDependString exceptions that encapsulate InvalidAtom exceptions, and make Package._validate_deps() use the InvalidAtom categories when recording the invalid metadata for use by repoman. Also, remove the EAPI.incompatible code from repoman that's no longer used.
* Let use_reduce and Atom do EAPI checksSebastian Luther2010-08-261-37/+4
|
* Use EAPI.incompatible repoman category for REQUIRED_USE setting inZac Medico2010-08-251-1/+1
| | | | EAPI that does not support it.
* Make Package._validate_deps() use check_required_use() to validateZac Medico2010-08-251-5/+15
| | | | REQUIRED_USE.
* Make Package._validate_deps() check USE conditionals in SRC_URI.Zac Medico2010-08-251-1/+2
|
* Bug #334365 - Mask packages with invalid metadata as early as possible,Zac Medico2010-08-251-3/+63
| | | | | | so that the depgraph won't select them unless they are already installed and there is no other choice. This should trigger automatic reinstallation of installed packages that have invalid metadata.
* * Replace config._iuse_implicit_re with a callable _iuse_implicit_matchZac Medico2010-08-181-6/+6
| | | | | | | object that simply returns boolean, and update consumers. * Make check_required_use() take a callable for the iuse parameter, and pass in Package.use.is_valid_flag or iuse.__contains__ as appropriate.
* Pass is_valid_flag to use_reduce if possibleSebastian Luther2010-08-161-1/+2
|
* portage.dep.use_reduce: Better validation of use flags in use conditionalsSebastian Luther2010-08-161-1/+1
| | | | | use_reduce now uses either a regex or, if provided, a is_valid_flag function to validate use flags
* Make DoebuildSpawnTestCase instantiate a minimal Package instance, andZac Medico2010-08-151-1/+1
| | | | fix code to tolerate missing metadata values in various places.
* portage.dep: Integrate the functionality of flatten into use_reduceSebastian Luther2010-08-141-2/+2
|
* Implement use dependency defaultsSebastian Luther2010-08-131-1/+1
|
* Make sure we don't allow REQUIRED_USE in EAPIs that don't support itSebastian Luther2010-08-111-1/+5
|
* Make sure we don't allow IUSE defaults in EAPIs that don't allow themSebastian Luther2010-08-111-0/+5
|
* portage.dep.use_reduce: Work on depstrings instead of paren_reduce'd dep arraysSebastian Luther2010-08-101-6/+5
| | | | | This change makes paren_reduce and paren_normalize calls for use_reduce redundant, resp. wrong. All consumers inside portage are adopted.
* Add REQUIRED_USE to metadata keys, caches, etc.Sebastian Luther2010-08-101-1/+1
|
* Add special handling for updates of Package.metadata['USE'], so thatZac Medico2010-06-011-3/+15
| | | | internal state is consistent.
* Add a Package.copy() method.Zac Medico2010-06-011-2/+9
|
* Make depgraph._serialize_tasks show a debug message when itZac Medico2010-05-301-4/+2
| | | | | enables 'complete' mode due to an uninstall, and fix the Package.__str__ method to display uninstall tasks properly.
* Add _emerge.Package.iuse.get_missing_iuse to return missing IUSE flags. ↵Sebastian Luther2010-05-251-0/+13
| | | | Restore original behavior of is_valid_flag.
* _emerge.Package.iuse.is_valid_flags should return a list of flags missing ↵Sebastian Luther2010-05-251-2/+3
| | | | from IUSE
* Allow _emerge.Package.iuse.is_valid_flag() to take a list of flagsSebastian Luther2010-05-251-4/+9
|
* _emerge.Package.__str__(): handle operation==uninstallSebastian Luther2010-05-211-0/+6
|
* Add _emerge.Package.__str__() for nicer output formattingSebastian Luther2010-05-201-0/+28
|
* Add a Package.iuse.is_valid_flag() method to replace the regex attribute,Zac Medico2010-04-271-20/+9
| | | | in order to avoid compiling regex for each Package instance.
* Add DEFINED_PHASES to the dbapi caches and _emerge.Package.metadataSebastian Luther2010-03-301-1/+6
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Use isvalidatom to validate PROVIDE entries.Zac Medico2010-02-191-2/+8
| | | | svn path=/main/trunk/; revision=15397
* Cache BUILD_TIME in Package.metadata.Zac Medico2010-02-151-1/+1
| | | | svn path=/main/trunk/; revision=15359
* Optimized the code for bug #288083 and make it handle more cases. Now Packagev2.2_rc51Zac Medico2009-11-211-2/+79
| | | | | | | instances have 'visible' and 'masks' attributes, since this information needs to be accessed in more places now. svn path=/main/trunk/; revision=14859
* Bug #292820 - Make the Package constructor handle invalid SLOT values.Zac Medico2009-11-121-2/+4
| | | | svn path=/main/trunk/; revision=14819
* Fix SyntaxError with Python 3 added in r14462.Arfrever Frehtes Taifersar Arahesis2009-09-291-1/+1
| | | | svn path=/main/trunk/; revision=14465
* Revert the rest of r14280 since it seems that dict bypasses __getitem__Zac Medico2009-09-291-26/+7
| | | | | | and/or __setitem__ too often. svn path=/main/trunk/; revision=14463
* Add back _PackageMetadataWrapper__setitem__, removed in r14280, since removingZac Medico2009-09-291-30/+64
| | | | | | | | it seems to cause problems. Thanks to Jeremy Olexa <darkside@gentoo.org> for reporting, and Marat Radchenko <marat@slonopotamus.org> for bisecting to find the revision. svn path=/main/trunk/; revision=14462
* Bug #285979 - Replace references to CDEPEND with UNUSED_00, to make it clearZac Medico2009-09-231-1/+0
| | | | | | that this key really is unused. svn path=/main/trunk/; revision=14393
* Define long as int when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+1
| | | | svn path=/main/trunk/; revision=14343
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Define basestring as str when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+4
| | | | svn path=/main/trunk/; revision=14316
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Use a dict for Package.metadata, because it's faster. Thanks to MaratZac Medico2009-09-191-49/+33
| | | | | | Radchenko <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14280