An acquire item that is responsible for fetching an index {{{ file (e.g., Packages or Sources).
More...
#include <apt-pkg/acquire-item.h>
|
|
void | Failed (std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override |
| |
|
void | Done (std::string const &Message, HashStringList const &Hashes, pkgAcquire::MethodConfig const *Cnf) override |
| |
|
std::string | Custom600Headers () const override |
| |
|
std::string | DescURI () const override |
| |
| std::string | GetMetaKey () const override |
| |
|
| pkgAcqIndex (pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target, bool const Derived=false) APT_NONNULL(2 |
| |
|
std::string | GetFinalFilename () const override |
| | Get the full pathname of the final file for the current URI.
|
| |
|
void | Failed (std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override |
| |
|
| pkgAcqBaseIndex (pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target) APT_NONNULL(2 |
| |
|
std::string | DescURI () const override |
| |
|
HashStringList | GetExpectedHashes () const override |
| |
|
bool | HashesRequired () const override |
| |
|
virtual bool | AcquireByHash () const |
| |
|
| pkgAcqTransactionItem (pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target) APT_NONNULL(2 |
| |
|
| enum | AllStages { STAGE_DOWNLOAD
, STAGE_DECOMPRESS_AND_VERIFY
} |
| | The stages the method goes through. More...
|
| |
|
|
void | StageDownloadDone (std::string const &Message) |
| | Handle what needs to be done when the download is done.
|
| |
|
void | StageDecompressDone () |
| | Handle what needs to be done when the decompression/copy is done.
|
| |
|
void | InitByHashIfNeeded () |
| | Do the changes needed to fetch via AptByHash (if needed)
|
| |
|
std::string | GetFinalFilename () const override |
| | Get the full pathname of the final file for the current URI.
|
| |
| bool | TransactionState (TransactionStates state) override |
| |
|
APT_HIDDEN void | Init (std::string const &URI, std::string const &URIDesc, std::string const &ShortDesc) |
| |
|
APT_HIDDEN bool | CommonFailed (std::string const &TargetURI, std::string const &Message, pkgAcquire::MethodConfig const *const Cnf) |
| |
|
HashStringList | GetExpectedHashesFor (std::string const &MetaKey) const |
| |
|
bool | QueueURI (pkgAcquire::ItemDesc &Item) override |
| |
|
|
AllStages | Stage |
| |
|
std::string | EraseFileName |
| | If set, this partially downloaded file will be removed when the download completes.
|
| |
|
std::string | CompressionExtensions |
| | The compression-related file extensions that are being added to the downloaded file one by one if first fails (e.g., "gz bz2").
|
| |
|
std::string | CurrentCompressionExtension |
| | The actual compression extension currently used.
|
| |
|
| enum | TransactionStates { TransactionStarted
, TransactionCommit
, TransactionAbort
} |
| |
|
IndexTarget const | Target |
| |
|
std::string | PartialFile |
| | storge name until a transaction is finished
|
| |
|
pkgAcqMetaClearSig *const | TransactionManager |
| | TransactionManager.
|
| |
An acquire item that is responsible for fetching an index {{{ file (e.g., Packages or Sources).
- See also
- pkgAcqDiffIndex, pkgAcqIndexDiffs, pkgAcqIndexTrans
- Todo:
- Why does pkgAcqIndex have protected members?
◆ AllStages
The stages the method goes through.
The method first downloads the indexfile, then its decompressed (or copied) and verified
◆ GetMetaKey()
| std::string GetMetaKey |
( |
| ) |
const |
|
overridevirtual |
◆ TransactionState()
| bool TransactionState |
( |
TransactionStates |
state | ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files: