From: David Kalnischkies Date: Thu, 24 May 2012 17:42:57 +0000 (+0200) Subject: * cmdline/apt-get.cc: X-Git-Tag: 0.9.6~1^2~41 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/72cf877c2e11cafe4809b2530af17881ec3c2ebe?ds=inline * 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 --- 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 Thu, 24 May 2012 19:40:58 +0200 + apt (0.9.5.1) unstable; urgency=low [ David Kalnischkies ]