1 #ifndef APT_PRIVATE_INSTALL_H
2 #define APT_PRIVATE_INSTALL_H
4 #include <apt-pkg/cachefile.h>
5 #include <apt-pkg/configuration.h>
6 #include <apt-pkg/pkgcache.h>
7 #include <apt-pkg/cacheiterators.h>
8 #include <apt-pkg/cacheset.h>
9 #include <apt-pkg/macros.h>
17 class pkgProblemResolver
;
19 APT_PUBLIC
bool DoInstall(CommandLine
&Cmd
);
21 bool DoCacheManipulationFromCommandLine(CommandLine
&CmdL
, std::vector
<const char*> &VolatileCmdL
, CacheFile
&Cache
,
22 std::map
<unsigned short, APT::VersionSet
> &verset
, int UpgradeMode
);
23 bool DoCacheManipulationFromCommandLine(CommandLine
&CmdL
, std::vector
<const char*> &VolatileCmdL
, CacheFile
&Cache
, int UpgradeMode
);
24 bool DoCacheManipulationFromCommandLine(CommandLine
&CmdL
, CacheFile
&Cache
, int UpgradeMode
);
26 APT_PUBLIC
bool InstallPackages(CacheFile
&Cache
,bool ShwKept
,bool Ask
= true,
30 // TryToInstall - Mark a package for installation /*{{{*/
33 pkgProblemResolver
* Fix
;
35 unsigned long AutoMarkChanged
;
36 APT::PackageSet doAutoInstallLater
;
38 TryToInstall(pkgCacheFile
&Cache
, pkgProblemResolver
*PM
, bool const FixBroken
) : Cache(&Cache
), Fix(PM
),
39 FixBroken(FixBroken
), AutoMarkChanged(0) {};
41 void operator() (pkgCache::VerIterator
const &Ver
);
42 bool propergateReleaseCandiateSwitching(std::list
<std::pair
<pkgCache::VerIterator
, std::string
> > const &start
, std::ostream
&out
);
46 // TryToRemove - Mark a package for removal /*{{{*/
49 pkgProblemResolver
* Fix
;
52 TryToRemove(pkgCacheFile
&Cache
, pkgProblemResolver
*PM
) : Cache(&Cache
), Fix(PM
),
53 PurgePkgs(_config
->FindB("APT::Get::Purge", false)) {};
55 void operator() (pkgCache::VerIterator
const &Ver
);