diff options
author | Michael Vogt <mvo@debian.org> | 2015-04-07 12:20:56 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2015-04-07 12:20:56 +0200 |
commit | 63b399509d46df71e8d16bd0d362eb23aa6558d7 (patch) | |
tree | 442fe082d0365b522cf1a548000e89676e896bc6 /apt-pkg/deb/dpkgpm.cc | |
parent | d01fa806061db7f5d227a0784405987c78998c84 (diff) |
Fix crash in pkgDPkgPM::WriteApportReport(() (LP: #1436626)
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index e23ca466d..b187efb40 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1900,8 +1900,19 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg) } } - // log the ordering - const char *ops_str[] = {"Install", "Configure","Remove","Purge"}; + // log the ordering, see dpkgpm.h and the "Ops" enum there + const char *ops_str[] = { + "Install", + "Configure", + "Remove", + "Purge", + "ConfigurePending", + "TriggersPending", + "reserved-1", + "reserved-2", + "reserved-3", + "reserved-4", + }; fprintf(report, "AptOrdering:\n"); for (vector<Item>::iterator I = List.begin(); I != List.end(); ++I) if ((*I).Pkg != NULL) |