Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug #334365 - Selectively ignore invalid metadata of installed packages | Zac Medico | 2010-08-26 | 1 | -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 message | Zac Medico | 2010-08-26 | 2 | -12/+29 |
| | | | | | | about masked installed packages, customize the InvalidDependString display to show the path of the *DEPEND file that contains the invalid dependency. | ||||
* | Do not include the whole input string in the use_reduce() | Zac Medico | 2010-08-26 | 1 | -21/+21 |
| | | | | | | | | InvalidDependString messages since the string is often extremely long which makes it flood the terminal when displayed. Instead we'll have to rely on the caller to display react appropriately to the exception (perhaps displaying the whole input if appropriate). | ||||
* | Fix breakage from previous commit. | Zac Medico | 2010-08-26 | 1 | -0/+2 |
| | |||||
* | Use Package.visible to simplify visibility checks for installed | Zac Medico | 2010-08-26 | 1 | -11/+1 |
| | | | | packages, no that it accounts for invalid metadata. | ||||
* | Fix Package._visible() to mask installed packages with invalid metadata. | Zac Medico | 2010-08-26 | 1 | -1/+3 |
| | |||||
* | Use shallow copy for more immutable config attributes. | Zac Medico | 2010-08-26 | 1 | -14/+15 |
| | |||||
* | Make LicenseManager.__deepcopy__() do a shallow copy of _license_groups | Zac Medico | 2010-08-26 | 1 | -1/+6 |
| | | | | | since internal policy ensures lack of mutation, and fix memo usage for the other immutable attributes. | ||||
* | Implement LicenseManager.__deepcopy__(), using shallow copy for | Zac Medico | 2010-08-26 | 1 | -1/+23 |
| | | | | immutable attributes. | ||||
* | Disable autouse support and add a deprecation warning to the autouse() | Zac Medico | 2010-08-26 | 1 | -34/+5 |
| | | | | function. | ||||
* | Use frozenset for config.usemask and useforce attributes, so there's | Zac Medico | 2010-08-26 | 2 | -8/+7 |
| | | | | | no need to copy them during clone operations. Also, there's no need to copy config.puse since its an immutable string. | ||||
* | Bug #334365 - Make dep_check() less strict with respect to EAPI | Zac Medico | 2010-08-26 | 1 | -17/+12 |
| | | | | | | | | | | constraints for installed packages since previous validation will have already marked them as invalid when necessary and now we're more interested in evaluating dependencies so that things like --depclean work as well as possible in spite of partial invalidity. Also, remove obsolete EAPI atom validation code from _expand_new_virtuals() since it's handled by use_reduce() and the Atom constructor now. | ||||
* | Various parse_metadata_use() fixes: | Zac Medico | 2010-08-26 | 1 | -25/+35 |
| | | | | | | | * Allow empty descriptions (backward compatibility). * Support multiple 'use' elements. * If multiple 'flag' elements have the same name attribute, use the first occurance. | ||||
* | Make parse_metadata_use() tolerate empty flag descriptions. | Zac Medico | 2010-08-26 | 1 | -8/+1 |
| | |||||
* | Ensure SystemExit is never caught. | Zac Medico | 2010-08-26 | 7 | -5/+17 |
| | |||||
* | Make the Atom class add 'EAPI.incompatible' category attributes to | Zac Medico | 2010-08-26 | 3 | -6/+34 |
| | | | | | | | | 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. | ||||
* | Make parse_metadata_use() emulate the Element.itertext() method from | Zac Medico | 2010-08-26 | 1 | -3/+19 |
| | | | | | python-2.7, so egencache --update-use-local-desc gets all of the inner text. | ||||
* | Fix up error handling for egencache --update-use-local-desc. | Zac Medico | 2010-08-26 | 1 | -2/+6 |
| | |||||
* | Fix breakage in use_reduce() calls where token_class=Atom is incorrect. | Zac Medico | 2010-08-26 | 2 | -2/+13 |
| | |||||
* | Remove unused max_parents variable. | Zac Medico | 2010-08-26 | 1 | -2/+0 |
| | |||||
* | Fix slot_conflict_handler breakage when calling | Zac Medico | 2010-08-26 | 1 | -2/+7 |
| | | | | | Atom.unevaluated_atom.violated_conditionals() since in this case the parent_use argument is required. | ||||
* | Parse flag descriptions in repoman.utilities.parse_metadata_use(). | Michał Górny | 2010-08-26 | 1 | -5/+12 |
| | | | | | | Grab the USE descriptions from metadata.xml within parse_metadata_use(). Instead of a plain flag list, return a dict containing both the flag names and their descriptions. | ||||
* | Make use_reduce() call Atom.evaluate_conditionals() when matchall is False, | Zac Medico | 2010-08-26 | 4 | -28/+7 |
| | | | | | and pass token_class=Atom in use_reduce() calls so that external Atom.evaluate_conditionals() calls can be eliminated. | ||||
* | In slot_conflict_handler(), never pass parent_use to | Zac Medico | 2010-08-26 | 1 | -4/+3 |
| | | | | | | Atom.violated_conditionals since the USE conditionals should have been evaluated in dep_check() and we don't want to accidentally pass a DependencyArg instance into _pkg_use_enabled(). | ||||
* | In slot_conflict_handler._prepare_conflict_msg_and_check_for_specificity() | Zac Medico | 2010-08-26 | 1 | -5/+1 |
| | | | | | don't pass parent_use to Atom.violated_conditionals() since these atoms already have already been through use_reduce() with the parent's USE. | ||||
* | Fix slot_conflict_handler._prepare_conflict_msg_and_check_for_specificity() | Zac Medico | 2010-08-26 | 1 | -1/+5 |
| | | | | | so that it only passes Package instances (not DependencyArg instances) into _pkg_use_enabled(). | ||||
* | Add PORTAGE_SIGPIPE_STATUS to config._environ_whitelist. | Zac Medico | 2010-08-26 | 1 | -1/+1 |
| | |||||
* | Add code to dep_check(), borrowed from _expand_new_virtuals(), to pass | Zac Medico | 2010-08-26 | 1 | -4/+16 |
| | | | | eapi to use_reduce() when available. | ||||
* | Let use_reduce and Atom do EAPI checks | Sebastian Luther | 2010-08-26 | 5 | -73/+56 |
| | |||||
* | Fix UnboundLocalError for y on line 177 in _expand_new_virtuals() | Zac Medico | 2010-08-26 | 1 | -1/+1 |
| | |||||
* | Remove obsolete TODO comment. | Zac Medico | 2010-08-25 | 1 | -3/+0 |
| | |||||
* | Tweak grammar for unknown-features-warn message. | Zac Medico | 2010-08-25 | 1 | -1/+1 |
| | |||||
* | Use EAPI.incompatible repoman category for REQUIRED_USE setting in | Zac Medico | 2010-08-25 | 1 | -1/+1 |
| | | | | EAPI that does not support it. | ||||
* | Make Package._validate_deps() use check_required_use() to validate | Zac Medico | 2010-08-25 | 1 | -5/+15 |
| | | | | REQUIRED_USE. | ||||
* | Just raise InvalidDependString in cases when it shouldn't happen since | Zac Medico | 2010-08-25 | 1 | -11/+7 |
| | | | | | the package is not installed and it should have been validated and masked already if necessary. | ||||
* | Make _get_masking_status() return masking reasons for installed packages | Zac Medico | 2010-08-25 | 1 | -11/+9 |
| | | | | | | | with invalid metadata, and remove show_invalid_depstring_notice() calls for installed packages since depgraph.display_problems() will now show the invalid metadata masking reasons when it displays installed packages that are masked. | ||||
* | Bug #334365 - Fix depgraph._wrapped_select_pkg_highest_available_imp() | Zac Medico | 2010-08-25 | 1 | -4/+20 |
| | | | | | | to avoid invalid or masked installed packages when necessary. This is especially important for invalid packages since they need be replaced so that their dependencies can be parsed for --depclean operations. | ||||
* | Make Package._validate_deps() check USE conditionals in SRC_URI. | Zac Medico | 2010-08-25 | 1 | -1/+2 |
| | |||||
* | Bug #334365 - Mask packages with invalid metadata as early as possible, | Zac Medico | 2010-08-25 | 2 | -14/+73 |
| | | | | | | 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. | ||||
* | Use a PORTAGE_SIGPIPE_STATUS variable to export 128 + SIGPIPE to the | Zac Medico | 2010-08-25 | 2 | -3/+10 |
| | | | | | ebuild environment. SIGPIPE is typically 13, but its better not to assume that. | ||||
* | Bug #334365 - When parsing dependencies of installed packages in | Zac Medico | 2010-08-25 | 1 | -2/+27 |
| | | | | | | | | | | | depgraph._add_pkg_deps(), ignore invalid USE conditionals, since these are a common problem and it's practical to ignore them for installed packages. TODO: For installed package, save any InvalidDependString info in dynamic_config and wait until display_problems() to show it. For packages that aren't installed, we should validate and mask them before they are selected. | ||||
* | show_invalid_depstring_notice: Don't repeat the dep string | Sebastian Luther | 2010-08-25 | 1 | -1/+1 |
| | |||||
* | Remove portage.usedefaults since it's broken by the previous commit. | Zac Medico | 2010-08-25 | 2 | -4/+1 |
| | |||||
* | config: Move handling of USE related config files into UseManager | Sebastian Luther | 2010-08-25 | 2 | -116/+169 |
| | |||||
* | Fix fragile sets config file path handling for for ResolverPlayground | Zac Medico | 2010-08-25 | 1 | -3/+3 |
| | | | | and remove unecessary setconfig_fallback() usage. | ||||
* | Fix WorldSelectedSet.singleBuilder() to use EROOT. | Zac Medico | 2010-08-25 | 1 | -1/+1 |
| | |||||
* | Add EROOT support to setconfig_fallback(). | Zac Medico | 2010-08-25 | 1 | -1/+1 |
| | |||||
* | Add EROOT support to the @module-rebuild package set. | Zac Medico | 2010-08-25 | 1 | -0/+2 |
| | |||||
* | When parsing package.env, pass the same tolerant and allow_sourcing | Zac Medico | 2010-08-24 | 1 | -1/+4 |
| | | | | arguments to getconfig() that are used when parsing make.conf. | ||||
* | Use deepcopy for LicenseManger, since I remove clone support from thev2.2_rc69 | Zac Medico | 2010-08-24 | 1 | -1/+3 |
| | | | | constructor. |