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-install.h File Reference
#include <apt-pkg/cachefile.h>
#include <apt-pkg/cacheset.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/macros.h>
#include <apt-pkg/pkgcache.h>
#include <list>
#include <string>
#include <utility>
Include dependency graph for private-install.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PseudoPkg
 
struct  TryToInstall
 
struct  TryToRemove
 

Functions

APT_PUBLIC bool DoInstall (CommandLine &Cmd)
 
std::vector< PseudoPkgGetAllPackagesAsPseudo (pkgSourceList *const SL, CommandLine &CmdL, bool(*Add)(pkgSourceList *const, PseudoPkg &&, std::vector< PseudoPkg > &), std::string const &pseudoArch)
 
std::vector< PseudoPkgGetPseudoPackages (pkgSourceList *const SL, CommandLine &CmdL, bool(*Add)(pkgSourceList *const, PseudoPkg &&, std::vector< PseudoPkg > &), std::string const &pseudoArch)
 
bool AddVolatileBinaryFile (pkgSourceList *const SL, PseudoPkg &&pkg, std::vector< PseudoPkg > &VolatileCmdL)
 
bool AddVolatileSourceFile (pkgSourceList *const SL, PseudoPkg &&pkg, std::vector< PseudoPkg > &VolatileCmdL)
 
bool DoCacheManipulationFromCommandLine (CommandLine &CmdL, std::vector< PseudoPkg > &VolatileCmdL, CacheFile &Cache, std::map< unsigned short, APT::VersionSet > &verset, int UpgradeMode, std::set< std::string > &UnknownPackages)
 
bool DoCacheManipulationFromCommandLine (CommandLine &CmdL, std::vector< PseudoPkg > &VolatileCmdL, CacheFile &Cache, int UpgradeMode)
 
bool DoCacheManipulationFromCommandLine (CommandLine &CmdL, CacheFile &Cache, int UpgradeMode)
 
APT_PUBLIC bool InstallPackages (CacheFile &Cache, bool ShwKept, bool Ask=true, bool Safety=true)
 
bool CheckNothingBroken (CacheFile &Cache)
 
bool DoAutomaticRemove (CacheFile &Cache)
 

Function Documentation

◆ AddVolatileBinaryFile()

bool AddVolatileBinaryFile ( pkgSourceList *const  SL,
PseudoPkg &&  pkg,
std::vector< PseudoPkg > &  VolatileCmdL 
)

Definition at line 745 of file private-install.cc.

References pkgSourceList::AddVolatileFile(), and flExtension().

Referenced by DoInstall(), ShowPackage(), and UpgradeHelper().

◆ AddVolatileSourceFile()

bool AddVolatileSourceFile ( pkgSourceList *const  SL,
PseudoPkg &&  pkg,
std::vector< PseudoPkg > &  VolatileCmdL 
)

Definition at line 733 of file private-install.cc.

References pkgSourceList::AddVolatileFile(), FileExists(), and flExtension().

Referenced by DoBuildDep().

◆ CheckNothingBroken()

bool CheckNothingBroken ( CacheFile Cache)

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

References _config, c1out, Configuration::Find(), and ShowBroken().

Referenced by DoBuildDep(), and DoCacheManipulationFromCommandLine().

◆ DoAutomaticRemove()

◆ DoCacheManipulationFromCommandLine() [1/3]

bool DoCacheManipulationFromCommandLine ( CommandLine CmdL,
CacheFile Cache,
int  UpgradeMode 
)

◆ DoCacheManipulationFromCommandLine() [2/3]

bool DoCacheManipulationFromCommandLine ( CommandLine CmdL,
std::vector< PseudoPkg > &  VolatileCmdL,
CacheFile Cache,
int  UpgradeMode 
)

Definition at line 581 of file private-install.cc.

References DoCacheManipulationFromCommandLine().

◆ DoCacheManipulationFromCommandLine() [3/3]

◆ DoInstall()

◆ GetAllPackagesAsPseudo()

std::vector<PseudoPkg> GetAllPackagesAsPseudo ( pkgSourceList *const  SL,
CommandLine CmdL,
bool(*)(pkgSourceList *const, PseudoPkg &&, std::vector< PseudoPkg > &)  Add,
std::string const &  pseudoArch 
)

Definition at line 789 of file private-install.cc.

References CommandLine::FileList, CommandLine::FileSize(), and I.

Referenced by ShowPackage().

◆ GetPseudoPackages()

std::vector<PseudoPkg> GetPseudoPackages ( pkgSourceList *const  SL,
CommandLine CmdL,
bool(*)(pkgSourceList *const, PseudoPkg &&, std::vector< PseudoPkg > &)  Add,
std::string const &  pseudoArch 
)

Definition at line 799 of file private-install.cc.

References CommandLine::FileList, CommandLine::FileSize(), and I.

Referenced by DoBuildDep(), DoInstall(), and UpgradeHelper().

◆ InstallPackages()