X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1aa9b2974d33015102224ffb738b2e8e0a4bcb42..b36597e050beaca71a481590c3d287ac706f4309:/apt-pkg/deb/dpkgpm.h diff --git a/apt-pkg/deb/dpkgpm.h b/apt-pkg/deb/dpkgpm.h index 9a4478f7c..ddf9485c7 100644 --- a/apt-pkg/deb/dpkgpm.h +++ b/apt-pkg/deb/dpkgpm.h @@ -18,19 +18,12 @@ using std::vector; using std::map; +class pkgDPkgPMPrivate; class pkgDPkgPM : public pkgPackageManager { private: - - bool stdin_is_dev_null; - - // the buffer we use for the dpkg status-fd reading - char dpkgbuf[1024]; - int dpkgbuf_pos; - FILE *term_out; - FILE *history_out; - string dpkg_error; + pkgDPkgPMPrivate *d; /** \brief record the disappear action and handle accordingly @@ -48,6 +41,7 @@ class pkgDPkgPM : public pkgPackageManager void handleDisappearAction(string const &pkgname); protected: + int pkgFailures; // progress reporting struct DpkgState @@ -64,6 +58,7 @@ class pkgDPkgPM : public pkgPackageManager // the int is the state that is already done (e.g. a package that is // going to be install is already in state "half-installed") map PackageOpsDone; + // progress reporting unsigned int PackagesDone; unsigned int PackagesTotal; @@ -85,6 +80,9 @@ class pkgDPkgPM : public pkgPackageManager bool SendV2Pkgs(FILE *F); void WriteHistoryTag(string const &tag, string value); + // apport integration + void WriteApportReport(const char *pkgpath, const char *errormsg); + // dpkg log bool OpenLog(); bool CloseLog();