Bug #261675 - Generate manifests in advance when FEATURES=digest is enabled.
authorZac Medico <zmedico@gentoo.org>
Mon, 9 Mar 2009 02:30:36 +0000 (02:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 9 Mar 2009 02:30:36 +0000 (02:30 -0000)
svn path=/main/trunk/; revision=12799

pym/_emerge/__init__.py

index df7db268d23a88573e33f8e0cef4a17427c7f138..4449f893525e66143b7f3d136cfd9e767b5eb7c9 100644 (file)
@@ -14572,7 +14572,14 @@ def action_build(settings, trees, mtimedb,
                        # Convert Atom instances to plain str.
                        mtimedb["resume"]["favorites"] = [str(x) for x in favorites]
 
-                       if ("--digest" in myopts) and not ("--fetchonly" in myopts or "--fetch-all-uri" in myopts):
+                       digest = '--digest' in myopts
+                       if not digest:
+                               for pkgsettings in mydepgraph.pkgsettings.itervalues():
+                                       if 'digest' in pkgsettings.features:
+                                               digest = True
+                                               break
+
+                       if digest and '--fetchonly' not in myopts:
                                for pkgline in mydepgraph.altlist():
                                        if pkgline[0]=="ebuild" and pkgline[3]=="merge":
                                                y = trees[pkgline[1]]["porttree"].dbapi.findname(pkgline[2])