Suppress warnings with DeprecationWarning.
authorZac Medico <zmedico@gentoo.org>
Mon, 3 Oct 2011 20:14:08 +0000 (13:14 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 3 Oct 2011 20:14:08 +0000 (13:14 -0700)
These manifest-hashes warnings are irrelevant to regular users, so suppress
them by default.

pym/portage/repository/config.py

index 713494c86831a158478154483f594fc5eb43199b..979b8592973acdb72b6df304a24d59a4ce97ab4f 100644 (file)
@@ -395,7 +395,7 @@ class RepoConfigLoader(object):
                                                "if you want to generate valid manifests for this "
                                                "repository: %s" % (repo.name,
                                                MANIFEST2_REQUIRED_HASH,
-                                               layout_filename)))
+                                               layout_filename)), DeprecationWarning)
                                unsupported_hashes = manifest_hashes.difference(
                                        MANIFEST2_HASH_FUNCTIONS)
                                if unsupported_hashes:
@@ -406,7 +406,7 @@ class RepoConfigLoader(object):
                                                "portage if you want to generate valid manifests for "
                                                "this repository: %s" % (repo.name,
                                                " ".join(sorted(unsupported_hashes)),
-                                               layout_filename)))
+                                               layout_filename)), DeprecationWarning)
                        repo.manifest_hashes = manifest_hashes
 
                        repo.cache_is_authoritative = layout_data.get('authoritative-cache', 'false').lower() == 'true'