diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-19 18:26:57 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-19 18:26:57 +0200 |
| commit | cc6c62f5bd954d11ec0b0a1d90a190463d36b0e6 (patch) | |
| tree | 7ba0306b1993958345aa2aabf359c17649a7a39b | |
| parent | 2089dda15fd6dd2734c395a9840c06e467c76325 (diff) | |
| download | python-apt-cc6c62f5bd954d11ec0b0a1d90a190463d36b0e6.tar.gz | |
apt/debfile.py: Remove the need to explcitly call check() in order
to get output from require_changes and missing_deps
(closes: #624379)
| -rw-r--r-- | apt/debfile.py | 4 | ||||
| -rw-r--r-- | debian/changelog | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index d0f41def..104b0814 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -472,7 +472,7 @@ class DebPackage(object): def missing_deps(self): """Return missing dependencies.""" self._dbg(1, "Installing: %s" % self._need_pkgs) - if self._need_pkgs is None: + if not self._need_pkgs: self.check() return self._need_pkgs @@ -485,6 +485,8 @@ class DebPackage(object): install = [] remove = [] unauthenticated = [] + if not self._cache: + self.check() for pkg in self._cache: if pkg.marked_install or pkg.marked_upgrade: install.append(pkg.name) diff --git a/debian/changelog b/debian/changelog index 15562c04..50d3c80f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,9 @@ python-apt (0.8.2) UNRELEASED; urgency=low [ Tshepang Lekhonkhobe ] * rm usage of camelcase in cache.py doc (closes: #626617) * grammar fix in the cache.py doc (closes: #626610) + * apt/debfile.py: Remove the need to explcitly call check() in order + to get output from require_changes and missing_deps + (closes: #624379) -- Michael Vogt <mvo@debian.org> Wed, 19 Oct 2011 18:03:42 +0200 |
