include apt ordering into apport package failures
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 28 Apr 2009 14:55:10 +0000 (16:55 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 28 Apr 2009 14:55:10 +0000 (16:55 +0200)
apt-pkg/deb/dpkgpm.cc
debian/changelog

index f57bff3..b41b38b 100644 (file)
@@ -1124,6 +1124,12 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg)
       }
    }
 
+   // log the ordering 
+   const char *ops_str[] = {"Install", "Configure","Remove","Purge"};
+   fprintf(report, "AptOrdering:\n");
+   for (vector<Item>::iterator I = List.begin(); I != List.end(); I++)
+      fprintf(report, " %s: %s\n", (*I).Pkg.Name(), ops_str[(*I).Op]);
+
    // attach dmesg log (to learn about segfaults)
    if (FileExists("/bin/dmesg"))
    {
index a62e13b..d3d28d0 100644 (file)
@@ -5,6 +5,7 @@ apt (0.7.20.2ubuntu7) karmic; urgency=low
     Thanks to M. Vefa Bicakci (LP: #80248)
   * build fixes for g++-4.4
   * include dmesg output in apport package failures
+  * include apt ordering into apport package failures
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 24 Apr 2009 10:14:01 +0200