For bug #158649, allow --buildpkgonly to bypass the fakedb population like --nodeps...
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Dec 2006 01:19:19 +0000 (01:19 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Dec 2006 01:19:19 +0000 (01:19 -0000)
svn path=/main/trunk/; revision=5348

bin/emerge

index d760377e197efd714facbcecf3ade6793dae8344..537f3a255a6cfb51a1d1a275047882cd44562c48 100755 (executable)
@@ -877,7 +877,8 @@ class depgraph:
                        # have after new packages have been installed.
                        fakedb = portage.fakedbapi(settings=self.pkgsettings[myroot])
                        self.mydbapi[myroot] = fakedb
-                       if "--nodeps" not in self.myopts:
+                       if "--nodeps" not in self.myopts and \
+                               "--buildpkgonly" not in self.myopts:
                                # --nodeps bypasses this, since it isn't needed in this case
                                # and the cache pulls might trigger (slow) cache generation.
                                for pkg in vardb.cpv_all():