]> git.saurik.com Git - apt.git/blame_incremental - apt-private/private-download.h
install: Set a local deb as the candidate for that package
[apt.git] / apt-private / private-download.h
... / ...
CommitLineData
1#ifndef APT_PRIVATE_DOWNLOAD_H
2#define APT_PRIVATE_DOWNLOAD_H
3
4#include <apt-pkg/macros.h>
5
6#include <string>
7#include <vector>
8
9class pkgAcquire;
10
11APT_PUBLIC bool CheckDropPrivsMustBeDisabled(pkgAcquire &Fetcher);
12
13// Check if all files in the fetcher are authenticated
14APT_PUBLIC bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser);
15
16// show a authentication warning prompt and return true if the system
17// should continue
18APT_PUBLIC bool AuthPrompt(std::vector<std::string> const &UntrustedList, bool const PromptUser);
19
20APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
21
22APT_PUBLIC bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes);
23
24#endif