diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-06 10:47:00 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-06 10:47:00 +0200 |
| commit | dd58eafe47bb69797966f70f1181e4046856cfe4 (patch) | |
| tree | 7442fdc655dff3267e71a78db3a497576a15a33a | |
| parent | 443fb34e5fa04392c82c0cf56d3ea3e086c704f8 (diff) | |
| download | python-apt-dd58eafe47bb69797966f70f1181e4046856cfe4.tar.gz | |
apt/cache.py: use apt_pkg.config instead of apt_pkg.Config
| -rw-r--r-- | apt/cache.py | 3 |
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 |
