summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-18 23:44:12 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-18 23:44:12 +0000
commit9b4f0a589b22ff00011cf81488fd8dde329026ab (patch)
treec76a12602ab5e6f0b9107231e5d4d530053acd47
parentcacdcb67f8c6842b1e5a3b9ac29505177482ced6 (diff)
downloadportage-9b4f0a589b22ff00011cf81488fd8dde329026ab.tar.gz
portage-9b4f0a589b22ff00011cf81488fd8dde329026ab.tar.bz2
portage-9b4f0a589b22ff00011cf81488fd8dde329026ab.zip
Bug #139023 - When the --digest option is enabled, advise the user that
`repoman manifest` is the preferred way to generate manifests. svn path=/main/trunk/; revision=9482
-rw-r--r--pym/_emerge/__init__.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 7556c0044..f00946fb2 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -6790,6 +6790,18 @@ 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" + \
+ " 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."
+ prefix = bad(" * ")
+ writemsg(prefix + "\n")
+ from textwrap import wrap
+ for line in wrap(msg, 72):
+ writemsg("%s%s\n" % (prefix, line))
+ writemsg(prefix + "\n")
+
if "--quiet" not in myopts and \
("--pretend" in myopts or "--ask" in myopts or \
"--tree" in myopts or "--verbose" in myopts):