From a6fe641395cb2f5f2a48d7fe1ffef2ff9c701165 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Fri, 25 Mar 2011 17:22:37 +0100 Subject: [PATCH] Ignore more python-apt warnings. Signed-off-by: Torsten Werner --- dak/queue_report.py | 10 ++++++++++ daklib/queue.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dak/queue_report.py b/dak/queue_report.py index 98c80f0a..7176a886 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -34,6 +34,16 @@ ################################################################################ +import warnings +warnings.filterwarnings('ignore', \ + "apt_pkg\.ParseTagFile\(\) is deprecated\. Please see apt_pkg\.TagFile\(\) for the replacement\.", \ + DeprecationWarning) +warnings.filterwarnings('ignore', \ + "Attribute '.*' of the 'apt_pkg\.TagFile' object is deprecated, use '.*' instead\.", \ + DeprecationWarning) + +################################################################################ + from copy import copy import glob, os, stat, sys, time import apt_pkg diff --git a/daklib/queue.py b/daklib/queue.py index b652f844..2b7f5204 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -63,7 +63,7 @@ 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\.", \ + "Attribute '.*' of the 'apt_pkg\.TagSection' object is deprecated, use '.*' instead\.", \ DeprecationWarning) ############################################################################### -- 2.39.5