From: Torsten Werner Date: Sun, 20 Mar 2011 22:02:34 +0000 (+0100) Subject: Ignore more warnings from python-apt. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4b7ba4438552c8d550c0682bc49a4320ccc91028;p=dak.git Ignore more warnings from python-apt. Signed-off-by: Torsten Werner --- 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):