summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-04-28 16:55:10 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-04-28 16:55:10 +0200
commit5c8a2aa8d5fa2f5e3342e9abd2b750f1615a226a (patch)
treebab3b16cc6a5faae384a140a73855e2cfc588e3a
parent76dbdfc7f02096758f63bcb6d306b54d5a2d0d02 (diff)
include apt ordering into apport package failures
-rw-r--r--apt-pkg/deb/dpkgpm.cc6
-rw-r--r--debian/changelog1
2 files changed, 7 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index f57bff32c..b41b38bd5 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -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"))
{
diff --git a/debian/changelog b/debian/changelog
index a62e13bad..d3d28d0dc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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