From b8ebdffd672d9ef5dcaa2470e86cf9184b83fc44 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 3 Oct 2011 13:14:08 -0700 Subject: [PATCH] Suppress warnings with DeprecationWarning. These manifest-hashes warnings are irrelevant to regular users, so suppress them by default. --- pym/portage/repository/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 713494c86..979b85929 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -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' -- 2.26.2