From dd58eafe47bb69797966f70f1181e4046856cfe4 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 6 Jul 2010 10:47:00 +0200 Subject: apt/cache.py: use apt_pkg.config instead of apt_pkg.Config --- apt/cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apt/cache.py b/apt/cache.py index 26532c76..f64b489a 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -471,7 +471,8 @@ class Cache(object): fix the system if dpkg got interrupted is to run 'dpkg --configure -a' as root. """ - dpkg_status_dir = os.path.dirname(apt_pkg.Config.find_file("Dir::State::status")) + dpkg_status_dir = os.path.dirname( + apt_pkg.config.find_file("Dir::State::status")) for f in os.listdir(os.path.join(dpkg_status_dir, "updates")): if fnmatch.fnmatch(f, "[0-9]*"): return True -- cgit v1.2.3