1 |
commit: b8ebdffd672d9ef5dcaa2470e86cf9184b83fc44 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 3 20:14:08 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 3 20:14:08 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b8ebdffd |
7 |
|
8 |
Suppress warnings with DeprecationWarning. |
9 |
|
10 |
These manifest-hashes warnings are irrelevant to regular users, so suppress |
11 |
them by default. |
12 |
|
13 |
--- |
14 |
pym/portage/repository/config.py | 4 ++-- |
15 |
1 files changed, 2 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py |
18 |
index 713494c..979b859 100644 |
19 |
--- a/pym/portage/repository/config.py |
20 |
+++ b/pym/portage/repository/config.py |
21 |
@@ -395,7 +395,7 @@ class RepoConfigLoader(object): |
22 |
"if you want to generate valid manifests for this " |
23 |
"repository: %s" % (repo.name, |
24 |
MANIFEST2_REQUIRED_HASH, |
25 |
- layout_filename))) |
26 |
+ layout_filename)), DeprecationWarning) |
27 |
unsupported_hashes = manifest_hashes.difference( |
28 |
MANIFEST2_HASH_FUNCTIONS) |
29 |
if unsupported_hashes: |
30 |
@@ -406,7 +406,7 @@ class RepoConfigLoader(object): |
31 |
"portage if you want to generate valid manifests for " |
32 |
"this repository: %s" % (repo.name, |
33 |
" ".join(sorted(unsupported_hashes)), |
34 |
- layout_filename))) |
35 |
+ layout_filename)), DeprecationWarning) |
36 |
repo.manifest_hashes = manifest_hashes |
37 |
|
38 |
repo.cache_is_authoritative = layout_data.get('authoritative-cache', 'false').lower() == 'true' |