From: fuzzyray Date: Tue, 18 Oct 2005 19:10:58 +0000 (-0000) Subject: Fix gentoolkit to properly parse '||' syntax. (Bug 101377) X-Git-Tag: gentoolkit-0.2.4.3~264 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f22ce8942302272476bdfc0d35b958438bf66573;p=gentoolkit.git Fix gentoolkit to properly parse '||' syntax. (Bug 101377) svn path=/; revision=249 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index a82c1f4..9aad3ae 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,11 @@ +2005-10-18 Paul Varner + * equery: Make equery look at both DEPEND and RDEPEND for dependencies + * gentoolkit: Fix _parse_deps to understand || syntax (Bug 101377) + +2005-10-14 Paul Varner + * equery: Add qpkg --dups functionality to equery list command (bug + 109156) + 2005-10-13 Paul Varner * equery: equery depgraph shows USE flags (Bug 74554) * equery: equery should properly parse use.local.desc (Bug 74569) diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index a59928f..1b2c3b0 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -668,7 +668,8 @@ class CmdDisplayDepGraph(Command): pkgtbl.append(cpv) - for x in pkg.get_runtime_deps(): + pkgdeps = pkg.get_runtime_deps() + pkg.get_compiletime_deps() + for x in pkgdeps: suffix = "" cpv = x[2] pkg = gentoolkit.find_best_match(x[0] + cpv) @@ -1038,7 +1039,7 @@ class CmdListDepends(Command): print_info(1, pp.section("* ") + "Dependencies for " + pp.cpv(pkg.get_cpv()) + ":") try: - deps = pkg.get_runtime_deps() + deps = pkg.get_runtime_deps() + pkg.get_compiletime_deps() except KeyError, e: # If the ebuild is not found... continue @@ -1054,7 +1055,7 @@ class CmdListDepends(Command): for pkg in packages: try: - deps = pkg.get_runtime_deps() + deps = pkg.get_runtime_deps() + pkg.get_compiletime_deps() except KeyError, e: # If the ebuild is not found... continue diff --git a/trunk/src/gentoolkit/package.py b/trunk/src/gentoolkit/package.py index 2bf27fc..69e0d8e 100644 --- a/trunk/src/gentoolkit/package.py +++ b/trunk/src/gentoolkit/package.py @@ -92,6 +92,11 @@ class Package: r += sr i += l + 3 continue + if tok == "||": + sr,l = self._parse_deps(deps[i+2:],curuse,level=level+1) + r += sr + i += l + 3 + continue # pick out comparator, if any cmp = "" for c in comparators: