From 0512fe54d1070ae1443030d08c3ba16be2176c5f Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Mon, 21 Jun 2010 19:11:11 +0000 Subject: APT: Add more filters for deprecated apt API accesses (Patch from Kioob) Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5955 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/APT.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py index b9498e513..8157d9e6c 100644 --- a/src/lib/Client/Tools/APT.py +++ b/src/lib/Client/Tools/APT.py @@ -7,6 +7,8 @@ warnings.filterwarnings("ignore", "apt API not stable yet", FutureWarning) warnings.filterwarnings("ignore", "Accessed deprecated property Package.installedVersion, please see the Version class for alternatives.", DeprecationWarning) 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) import apt.cache import os -- cgit v1.2.3-1-g7c22