]> git.saurik.com Git - apt.git/commitdiff
Fix crash in pkgDPkgPM::WriteApportReport(() (LP: #1436626)
authorMichael Vogt <mvo@debian.org>
Tue, 7 Apr 2015 10:20:56 +0000 (12:20 +0200)
committerMichael Vogt <mvo@debian.org>
Tue, 7 Apr 2015 10:20:56 +0000 (12:20 +0200)
apt-pkg/deb/dpkgpm.cc

index e23ca466d89b9c774deadce4f57cd9a37d6cccb3..b187efb405aed0dab154bcf8f9df7c03f1d72fd0 100644 (file)
@@ -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)