Make the --digest warning message show for FEATURES=digest.
authorZac Medico <zmedico@gentoo.org>
Mon, 9 Mar 2009 01:33:46 +0000 (01:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 9 Mar 2009 01:33:46 +0000 (01:33 -0000)
svn path=/main/trunk/; revision=12796

pym/_emerge/__init__.py

index 0b60e0fd27616265f6ce22b469fb6abcda4a8aea..df7db268d23a88573e33f8e0cef4a17427c7f138 100644 (file)
@@ -14260,8 +14260,13 @@ def action_build(settings, trees, mtimedb,
        if pretend or fetchonly:
                # make the mtimedb readonly
                mtimedb.filename = None
-       if "--digest" in myopts:
-               msg = "The --digest option can prevent corruption from being" + \
+       if '--digest' in myopts or 'digest' in settings.features:
+               if '--digest' in myopts:
+                       msg = "The --digest option"
+               else:
+                       msg = "The FEATURES=digest setting"
+
+               msg += " can prevent corruption from being" + \
                        " noticed. The `repoman manifest` command is the preferred" + \
                        " way to generate manifests and it is capable of doing an" + \
                        " entire repository or category at once."