From: Torsten Werner Date: Fri, 25 Mar 2011 16:25:34 +0000 (+0100) Subject: Let's hope nobody reads THAT commit! X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12aa4c9ae0c805b3c07eee1d7873e1d513010e98;p=dak Let's hope nobody reads THAT commit! It's too embarrassing. Signed-off-by: Torsten Werner --- diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 08d336d4..aac0d454 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -35,6 +35,16 @@ Check for obsolete binary packages ################################################################################ +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) + +################################################################################ + import commands, os, sys, re import apt_pkg diff --git a/dak/queue_report.py b/dak/queue_report.py index 7176a886..98c80f0a 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -34,16 +34,6 @@ ################################################################################ -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