diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-22 18:06:30 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-22 18:06:30 +0100 |
| commit | 0af443d9a182b0fec5f9963edef3c1f1908e831f (patch) | |
| tree | d1737262ff2d24efe7ace6e03d410e6058ca33ab | |
| parent | b7b608bf2c66e7466313ea02568348aea9cc29ba (diff) | |
| download | python-apt-0af443d9a182b0fec5f9963edef3c1f1908e831f.tar.gz | |
cleanup
| -rw-r--r-- | apt/cache.py | 14 | ||||
| -rw-r--r-- | apt/debfile.py | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/apt/cache.py b/apt/cache.py index b4d67fa5..96b38a57 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -46,13 +46,13 @@ class LockFailedException(IOError): class Cache(object): """Dictionary-like package cache. - The APT cache file contains a hash table mapping names of binary - packages to their metadata. A Cache object is the in-core - representation of the same. It provides access to APTs idea of the - list of available packages. - - The cache can be used like a mapping from package names to Package - objects (although only getting items is supported). + The APT cache file contains a hash table mapping names of binary + packages to their metadata. A Cache object is the in-core + representation of the same. It provides access to APTs idea of the + list of available packages. + + The cache can be used like a mapping from package names to Package + objects (although only getting items is supported). Keyword arguments: progress -- a OpProgress object diff --git a/apt/debfile.py b/apt/debfile.py index 5b9274b2..277262d7 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -477,7 +477,7 @@ class DebPackage(object): """Return missing dependencies.""" self._dbg(1, "Installing: %s" % self._need_pkgs) if not self._check_was_run: - raise ValueError("property only available after check() was run") + raise AttributeError("property only available after check() was run") return self._need_pkgs @property @@ -490,7 +490,7 @@ class DebPackage(object): remove = [] unauthenticated = [] if not self._check_was_run: - raise ValueError("property only available after check() was run") + raise AttributeError("property only available after check() was run") for pkg in self._cache: if pkg.marked_install or pkg.marked_upgrade: install.append(pkg.name) |
