| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Return a dict of dicts in parse_metadata_use(), with second-level keys
being the restrict strings (or None when no restrict). When generating
use.local.desc, use the description from the possibly-highest-matching
atom.
|
| |
|
|
|
|
| |
a IOError.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Strictly speaking _license_manager is not immutable. Users need to ensure that
extract_global_changes() is called right after __init__ (if at all).
It also has the mutable member _undef_lic_groups. It is used to track
undifiend license groups, to not display an error message for the same
group again and again. Because of this, it's useful to share it between
all LicenseManager instances.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
about masked installed packages, customize the InvalidDependString
display to show the path of the *DEPEND file that contains the
invalid dependency.
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
| |
packages, no that it accounts for invalid metadata.
|
| |
|
| |
|
|
|
|
|
| |
since internal policy ensures lack of mutation, and fix memo usage
for the other immutable attributes.
|
|
|
|
| |
immutable attributes.
|
|
|
|
| |
function.
|
|
|
|
|
| |
no need to copy them during clone operations. Also, there's no need
to copy config.puse since its an immutable string.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
* Allow empty descriptions (backward compatibility).
* Support multiple 'use' elements.
* If multiple 'flag' elements have the same name attribute, use
the first occurance.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
python-2.7, so egencache --update-use-local-desc gets all of the inner
text.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Atom.unevaluated_atom.violated_conditionals() since in this case
the parent_use argument is required.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
and pass token_class=Atom in use_reduce() calls so that external
Atom.evaluate_conditionals() calls can be eliminated.
|
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
don't pass parent_use to Atom.violated_conditionals() since these atoms
already have already been through use_reduce() with the parent's USE.
|
|
|
|
|
| |
so that it only passes Package instances (not DependencyArg instances) into
_pkg_use_enabled().
|
| |
|
|
|
|
| |
eapi to use_reduce() when available.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
EAPI that does not support it.
|
|
|
|
| |
REQUIRED_USE.
|
|
|
|
|
| |
the package is not installed and it should have been validated and masked
already if necessary.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
ebuild environment. SIGPIPE is typically 13, but its better not to
assume that.
|