[dak/master] Ignore more python-apt warnings.
Signed-off-by: Torsten Werner <twerner@debian.org>
---
dak/queue_report.py | 10 ++++++++++
daklib/queue.py | 2 +-
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dak/queue_report.py b/dak/queue_report.py
index 98c80f0..7176a88 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 b652f84..2b7f520 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)
###############################################################################
--
1.7.2.5
Reply to: