summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/APT.py
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2011-05-15 15:23:59 +0200
committerSol Jerome <sol.jerome@gmail.com>2011-06-14 12:36:45 -0500
commit8168776fb50858a0e531c3a874ee1e20a88e7690 (patch)
treeb9c1b59fab99fb0aacc093193217c0e8871b4f89 /src/lib/Client/Tools/APT.py
parente081a2355c6afa182359bd44aa74ad45f16636f2 (diff)
downloadbcfg2-8168776fb50858a0e531c3a874ee1e20a88e7690.tar.gz
bcfg2-8168776fb50858a0e531c3a874ee1e20a88e7690.tar.bz2
bcfg2-8168776fb50858a0e531c3a874ee1e20a88e7690.zip
APT: Add two filters for deprecated API accesses
These accesses are triggered by <Package> configuration entries which don't have the "version" attribute set to "auto" or "any".
Diffstat (limited to 'src/lib/Client/Tools/APT.py')
-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