public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r9482 - main/trunk/pym/_emerge
@ 2008-03-18 23:44 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-03-18 23:44 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-03-18 23:44:12 +0000 (Tue, 18 Mar 2008)
New Revision: 9482

Modified:
   main/trunk/pym/_emerge/__init__.py
Log:
Bug #139023 - When the --digest option is enabled, advise the user that
`repoman manifest` is the preferred way to generate manifests.


Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2008-03-18 23:41:52 UTC (rev 9481)
+++ main/trunk/pym/_emerge/__init__.py	2008-03-18 23:44:12 UTC (rev 9482)
@@ -6790,6 +6790,18 @@
 	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):

-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-18 23:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-18 23:44 [gentoo-commits] portage r9482 - main/trunk/pym/_emerge Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox