apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

private-download.cc File Reference
#include <config.h>
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/acquire.h>
#include <apt-pkg/cacheset.h>
#include <apt-pkg/clean.h>
#include <apt-pkg/cmndline.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/strutl.h>
#include <apt-private/acqprogress.h>
#include <apt-private/private-cachefile.h>
#include <apt-private/private-download.h>
#include <apt-private/private-output.h>
#include <apt-private/private-utils.h>
#include <fstream>
#include <string>
#include <vector>
#include <fcntl.h>
#include <pwd.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/mount.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
#include <apti18n.h>
Include dependency graph for private-download.cc:

Go to the source code of this file.

Classes

class  LogCleaner
 

Functions

bool CheckAuth (pkgAcquire &Fetcher, bool const PromptUser)
 
bool AuthPrompt (std::vector< std::string > const &UntrustedList, bool const PromptUser)
 
bool AcquireRun (pkgAcquire &Fetcher, int const PulseInterval, bool *const Failure, bool *const TransientNetworkFailure)
 
bool CheckFreeSpaceBeforeDownload (std::string const &Dir, unsigned long long FetchBytes)
 
bool DoDownload (CommandLine &CmdL)
 
bool DoChangelog (CommandLine &CmdL)
 
bool DoClean (CommandLine &)
 
bool DoAutoClean (CommandLine &)
 

Function Documentation

◆ AcquireRun()

bool AcquireRun ( pkgAcquire Fetcher,
int const  PulseInterval,
bool *const  Failure,
bool *const  TransientNetworkFailure 
)

◆ AuthPrompt()

bool AuthPrompt ( std::vector< std::string > const &  UntrustedList,
bool const  PromptUser 
)

Definition at line 57 of file private-download.cc.

References _config, c2out, Configuration::FindB(), Configuration::FindI(), ShowList(), and YnPrompt().

Referenced by CheckAuth(), and DoSource().

◆ CheckAuth()

bool CheckAuth ( pkgAcquire Fetcher,
bool const  PromptUser 
)

Definition at line 44 of file private-download.cc.

References AuthPrompt(), I, pkgAcquire::ItemsBegin(), and pkgAcquire::ItemsEnd().

Referenced by DoDownload(), and InstallPackages().

◆ CheckFreeSpaceBeforeDownload()

bool CheckFreeSpaceBeforeDownload ( std::string const &  Dir,
unsigned long long  FetchBytes 
)

Definition at line 127 of file private-download.cc.

References _config, Configuration::Find(), and Configuration::FindB().

Referenced by DoSource(), and InstallPackages().

◆ DoAutoClean()

◆ DoChangelog()

◆ DoClean()

◆ DoDownload()