]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
merged from the debian-sid branch
[apt.git] / apt-pkg / deb / dpkgpm.cc
index f57bff32cddbec34fa3402d4b2e5a3cce1e793fc..b41b38bd54ed7b9fca9b5df222347c5a89f1e8d5 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"))
    {