From 4b7ba4438552c8d550c0682bc49a4320ccc91028 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Sun, 20 Mar 2011 23:02:34 +0100 Subject: [PATCH] Ignore more warnings from python-apt. Signed-off-by: Torsten Werner --- daklib/queue.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/daklib/queue.py b/daklib/queue.py index bbbf1dfa..a7e2d5a9 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): -- 2.39.2