summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-07-06 10:47:00 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-07-06 10:47:00 +0200
commitdd58eafe47bb69797966f70f1181e4046856cfe4 (patch)
tree7442fdc655dff3267e71a78db3a497576a15a33a
parent443fb34e5fa04392c82c0cf56d3ea3e086c704f8 (diff)
downloadpython-apt-dd58eafe47bb69797966f70f1181e4046856cfe4.tar.gz
apt/cache.py: use apt_pkg.config instead of apt_pkg.Config
-rw-r--r--apt/cache.py3
1 files changed, 2 insertions, 1 deletions
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