Fix gentoolkit to properly parse '||' syntax. (Bug 101377)
authorfuzzyray <fuzzyray@gentoo.org>
Tue, 18 Oct 2005 19:10:58 +0000 (19:10 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Tue, 18 Oct 2005 19:10:58 +0000 (19:10 -0000)
svn path=/; revision=249

trunk/ChangeLog
trunk/src/equery/equery
trunk/src/gentoolkit/package.py

index a82c1f497d256953016d0d10bc8d22bd2e8cb5b5..9aad3aed58c467bd90caf7571e534ad96f894e54 100644 (file)
@@ -1,3 +1,11 @@
+2005-10-18 Paul Varner <fuzzyray@gentoo.org>
+       * 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 <fuzzyray@gentoo.org>
+       * equery: Add qpkg --dups functionality to equery list command (bug
+       109156)
+
 2005-10-13 Paul Varner <fuzzyray@gentoo.org>
        * equery: equery depgraph shows USE flags (Bug 74554)
        * equery: equery should properly parse use.local.desc (Bug 74569)
index a59928f106f2a818f4947dd8f0d96faa367b664a..1b2c3b025751e2a696300f12c69f65f738a4f165 100755 (executable)
@@ -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
index 2bf27fc2435e9e1572a29e261a5a67b798a004dc..69e0d8e228904a27bf1b5a89e7d2e091a7db880d 100644 (file)
@@ -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: