diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-03-01 17:48:06 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-03-01 17:48:06 +0100 |
| commit | a8dda6d93b07b7226a3aa41baa50ca059674566e (patch) | |
| tree | 3a47fc78dbdd11c93096409b00212b42341e2e0e /apt/cache.py | |
| parent | a72f4f9fd0ce0e8c1e49486fd779003b7f05c882 (diff) | |
| download | python-apt-a8dda6d93b07b7226a3aa41baa50ca059674566e.tar.gz | |
Some stylistic changes.
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apt/cache.py b/apt/cache.py index e8688d64..2e6d24e5 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -57,6 +57,10 @@ class Cache(object): """ def __init__(self, progress=None, rootdir=None, memonly=False): + self._cache = None + self._depcache = None + self._records = None + self._list = None self._callbacks = {} self._weakref = weakref.WeakValueDictionary() self._set = set() @@ -624,9 +628,9 @@ def _test(): # see if fetching works - for dir in ["/tmp/pytest", "/tmp/pytest/partial"]: - if not os.path.exists(dir): - os.mkdir(dir) + for dirname in ["/tmp/pytest", "/tmp/pytest/partial"]: + if not os.path.exists(dirname): + os.mkdir(dirname) apt_pkg.config.set("Dir::Cache::Archives", "/tmp/pytest") pm = apt_pkg.PackageManager(cache._depcache) fetcher = apt_pkg.Acquire(apt.progress.text.AcquireProgress()) |
