[dak/master] Ignore more warnings from python-apt.
Signed-off-by: Torsten Werner <twerner@debian.org>
---
daklib/queue.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index bbbf1df..a7e2d5a 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -56,6 +56,16 @@ from textutils import fix_maintainer
from binary import Binary
from lintian import parse_lintian_output, generate_reject_messages
+# suppress some deprecation warnings in squeeze related to apt_pkg
+# module
+import warnings
+warnings.filterwarnings('ignore', \
+ "apt_pkg-.ParseSection\(\) is deprecated. Please see apt_pkg\.TagSection\(\) for the replacement\.", \
+ DeprecationWarning)
+warnings.filterwarnings('ignore', \
+ "Attribute 'Find' of the 'apt_pkg\.TagSection' object is deprecated, use 'find' instead\.", \
+ DeprecationWarning)
+
###############################################################################
def get_type(f, session):
--
1.7.2.5
Reply to: