diff options
author | Michael Vogt <mvo@ubuntu.com> | 2015-10-05 15:21:47 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2015-10-05 15:21:47 +0200 |
commit | 6f2f5f4afa6f628ad3d068e9ba55fc6455eefa12 (patch) | |
tree | d360bbbdff678c19142facabc46f30f693fe32e9 /apt-pkg/deb/dpkgpm.cc | |
parent | 1f5a2d63b784eb919143d0be3f2dee7ff0bb7e83 (diff) | |
parent | 56e47f3111ad714c6506c0d60dccb92cfc9311cb (diff) |
Merge branch 'debian/sid' into ubuntu/master
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 535db5e9a..eca14f626 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1057,8 +1057,18 @@ void pkgDPkgPM::BuildPackagesProgressMap() ++PackagesTotal; } /*}}}*/ - -// compat +#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR < 17) +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 GoNoABIBreak(progress); +} +#else bool pkgDPkgPM::Go(int StatusFd) { APT::Progress::PackageManager *progress = NULL; @@ -1069,6 +1079,7 @@ bool pkgDPkgPM::Go(int StatusFd) return Go(progress); } +#endif void pkgDPkgPM::StartPtyMagic() { @@ -1223,7 +1234,7 @@ void pkgDPkgPM::StopPtyMagic() * through to human readable (and i10n-able) * names and calculates a percentage for each step. */ -#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13) +#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 17) bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress) #else bool pkgDPkgPM::GoNoABIBreak(APT::Progress::PackageManager *progress) |