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 /cmdline | |
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
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 3 |
1 files changed, 3 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++) { |