For bug #158503, allow --nodeps to override blockers.
authorZac Medico <zmedico@gentoo.org>
Tue, 19 Dec 2006 00:10:21 +0000 (00:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 19 Dec 2006 00:10:21 +0000 (00:10 -0000)
svn path=/main/trunk/; revision=5321

bin/emerge

index edccaf4fc260f3a760b02e3e0f1ac115ad7797d3..1a41d96c62741c33beaa5de0b24f731b27683ac2 100755 (executable)
@@ -925,7 +925,9 @@ class depgraph:
                
                self.spinner.update()
                if mytype == "blocks":
-                       if addme and "--buildpkgonly" not in self.myopts and myparent:
+                       if myparent and \
+                               "--buildpkgonly" not in self.myopts and \
+                               "--nodeps" not in self.myopts:
                                mybigkey[1] = myparent[1]
                                self.blocker_parents.setdefault(
                                        tuple(mybigkey), set()).add(myparent)
@@ -1538,7 +1540,8 @@ class depgraph:
                correct merge order such that mutually blocking packages are never
                installed simultaneously."""
 
-               if "--buildpkgonly" in self.myopts:
+               if "--buildpkgonly" in self.myopts or \
+                       "--nodeps" in self.myopts:
                        return True
 
                #if "deep" in self.myparams: