]> git.decadent.org.uk Git - dak.git/commitdiff
Ignore more warnings from python-apt.
authorTorsten Werner <twerner@debian.org>
Sun, 20 Mar 2011 22:02:34 +0000 (23:02 +0100)
committerTorsten Werner <twerner@debian.org>
Sun, 20 Mar 2011 22:02:34 +0000 (23:02 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/queue.py

index bbbf1dfa1fe7949e94491361a30c573d19a692d9..a7e2d5a9b8a3823f2424a69763718a6660b4c6a2 100755 (executable)
@@ -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):