portage.dep._dnf module

portage.dep._dnf.contains_disjunction(dep_struct)

Search for a disjunction contained in dep_struct, where dep_struct is either a conjunction or disjunction of the form produced by use_reduce(opconvert=True). If dep_struct is a disjunction, then this only returns True if there is a nested disjunction. Due to normalization, recursion is only needed when dep_struct is a disjunction containing a conjunction. If dep_struct is a conjunction, then it is assumed that normalization has elevated any nested disjunctions to the top-level.

portage.dep._dnf.dnf_convert(dep_struct)

Convert dep_struct to disjunctive normal form (DNF), where dep_struct is either a conjunction or disjunction of the form produced by use_reduce(opconvert=True).