X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcruft_report.py;fp=dak%2Fcruft_report.py;h=aac0d454b5af68cbf1c717eab68c2fc905bbd08e;hb=12aa4c9ae0c805b3c07eee1d7873e1d513010e98;hp=08d336d4466ea41fcef987c49a9fa105006e8b45;hpb=e98394a6dc4c67289397547a487b72650faa3f2d;p=dak.git 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