]> git.saurik.com Git - apt.git/commitdiff
* cmdline/apt-get.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 24 May 2012 17:42:57 +0000 (19:42 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 24 May 2012 17:42:57 +0000 (19:42 +0200)
  - do not show 'list of broken packages' header if no package
    is broken as it happens e.g. for external resolver errors

cmdline/apt-get.cc
debian/changelog

index c996017b8906bb4af1679f7e3fd181680f8176c3..6ef0460890ce80a4b1a5b338e6cffa73836f4582 100644 (file)
@@ -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++)
    {
index c0cc77c29278ab9c9619529875d4fcfb98e47d31..d598fe25e715a1ee52d13a3f807031fd73dbe23c 100644 (file)
@@ -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 ]