diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-05-24 19:42:57 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-05-24 19:42:57 +0200 |
commit | 72cf877c2e11cafe4809b2530af17881ec3c2ebe (patch) | |
tree | fd46e45aa1cc9846be35c2e8cc96e338f02ba99e | |
parent | d16fe09a2748a9b34b1be4e39ad196d5949c4ae3 (diff) |
* cmdline/apt-get.cc:
- do not show 'list of broken packages' header if no package
is broken as it happens e.g. for external resolver errors
-rw-r--r-- | cmdline/apt-get.cc | 3 | ||||
-rw-r--r-- | debian/changelog | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index c996017b8..6ef046089 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -254,6 +254,9 @@ bool ShowList(ostream &out,string Title,string List,string VersionsList) */ void ShowBroken(ostream &out,CacheFile &Cache,bool Now) { + if (Cache->BrokenCount() == 0) + return; + out << _("The following packages have unmet dependencies:") << endl; for (unsigned J = 0; J < Cache->Head().PackageCount; J++) { diff --git a/debian/changelog b/debian/changelog index c0cc77c29..d598fe25e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +apt (0.9.5.2) UNRELEASED; urgency=low + + [ David Kalnischkies ] + * cmdline/apt-get.cc: + - do not show 'list of broken packages' header if no package + is broken as it happens e.g. for external resolver errors + + -- David Kalnischkies <kalnischkies@gmail.com> Thu, 24 May 2012 19:40:58 +0200 + apt (0.9.5.1) unstable; urgency=low [ David Kalnischkies ] |