X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/73fe49f9b4748eddb5a2dad4f0abb51a8f63564c..0327b790d40e59e1e35c6ed841308aaebbde8697:/apt-private/private-install.cc diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index dda5b50be..74a2424c5 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -134,8 +134,7 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety) return false; // Create the download object - AcqTextStatus Stat(std::cout, ScreenWidth,_config->FindI("quiet",0)); - pkgAcquire Fetcher(&Stat); + aptAcquireWithTextStatus Fetcher; if (_config->FindB("APT::Get::Print-URIs", false) == true) { // force a hashsum for compatibility reasons @@ -667,7 +666,7 @@ struct PkgIsExtraInstalled { pkgCacheFile * const Cache; APT::VersionSet const * const verset; PkgIsExtraInstalled(pkgCacheFile * const Cache, APT::VersionSet const * const Container) : Cache(Cache), verset(Container) {} - bool operator() (pkgCache::PkgIterator const Pkg) + bool operator() (pkgCache::PkgIterator const &Pkg) { if ((*Cache)[Pkg].Install() == false) return false;