summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <solj+dev@soljerome.com>2011-05-20 04:23:03 -0700
committerSol Jerome <solj+dev@soljerome.com>2011-05-20 04:23:03 -0700
commit80a4142a8d372440d31f4c32d00e70fcab144ba5 (patch)
tree6283912600e173a34337518b69a57af9689f97b8
parent9bb5fca8f650b1ef46eaccd5603178f5ec2e10fd (diff)
parent2e69ddcdf440c9f8d59d67ff803629611963dc8d (diff)
downloadbcfg2-80a4142a8d372440d31f4c32d00e70fcab144ba5.tar.gz
bcfg2-80a4142a8d372440d31f4c32d00e70fcab144ba5.tar.bz2
bcfg2-80a4142a8d372440d31f4c32d00e70fcab144ba5.zip
Merge pull request #34 from weiss/filter-apt-warnings
APT: Add two filters for deprecated API accesses
-rw-r--r--src/lib/Client/Tools/APT.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py
index a838f5e27..d7be44dc0 100644
--- a/src/lib/Client/Tools/APT.py
+++ b/src/lib/Client/Tools/APT.py
@@ -9,6 +9,8 @@ warnings.filterwarnings("ignore", "Accessed deprecated property Package.installe
warnings.filterwarnings("ignore", "Accessed deprecated property Package.candidateVersion, please see the Version class for alternatives.", DeprecationWarning)
warnings.filterwarnings("ignore", "Deprecated, please use 'is_installed' instead", DeprecationWarning)
warnings.filterwarnings("ignore", "Attribute 'IsUpgradable' of the 'apt_pkg.DepCache' object is deprecated, use 'is_upgradable' instead.", DeprecationWarning)
+warnings.filterwarnings("ignore", "Attribute 'VersionList' of the 'apt_pkg.Package' object is deprecated, use 'version_list' instead.", DeprecationWarning)
+warnings.filterwarnings("ignore", "Attribute 'VerStr' of the 'apt_pkg.Version' object is deprecated, use 'ver_str' instead.", DeprecationWarning)
import apt.cache
import os