diff options
author | Michael Vogt <mvo@ubuntu.com> | 2015-07-24 17:34:30 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2015-07-24 17:34:30 +0200 |
commit | 3b216cf6b6e082b7de4dfece65601a96d269d529 (patch) | |
tree | da4f87625817bc1d1ec589291d331528e55ccbd6 /apt-pkg/deb/dpkgpm.cc | |
parent | 439b024abe8fd6b8227a8b2869aab65a1186cfda (diff) |
updated for the gcc5 transition
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 82e045fd3..d17734fdc 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1068,6 +1068,17 @@ bool pkgDPkgPM::Go(int StatusFd) return GoNoABIBreak(progress); } +#else +bool pkgDPkgPM::Go(int StatusFd) +{ + APT::Progress::PackageManager *progress = NULL; + if (StatusFd == -1) + progress = APT::Progress::PackageManagerProgressFactory(); + else + progress = new APT::Progress::PackageManagerProgressFd(StatusFd); + + return Go(progress); +} #endif void pkgDPkgPM::StartPtyMagic() |