From: Torsten Werner Date: Fri, 25 Mar 2011 16:22:37 +0000 (+0100) Subject: Ignore more python-apt warnings. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6fe641395cb2f5f2a48d7fe1ffef2ff9c701165;p=dak Ignore more python-apt warnings. Signed-off-by: Torsten Werner --- 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) ###############################################################################