apt 3.0.3
commandline package manager
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
pkgAcqMetaIndex Class Reference

An item that is responsible for downloading the meta-index {{{ file (i.e., Release) itself and verifying its signature. More...

#include <apt-pkg/acquire-item.h>

Inheritance diagram for pkgAcqMetaIndex:
[legend]
Collaboration diagram for pkgAcqMetaIndex:
[legend]

Public Member Functions

std::string DescURI () const override
 
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
 
 pkgAcqMetaIndex (pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &DataTarget, IndexTarget const &DetachedSigTarget) APT_NONNULL(2
 Create a new pkgAcqMetaIndex.
 
- Public Member Functions inherited from pkgAcqMetaBase
bool QueueURI (pkgAcquire::ItemDesc &Item) override
 
HashStringList GetExpectedHashes () const override
 
bool HashesRequired () const override
 
void Add (pkgAcqTransactionItem *const I)
 
void AbortTransaction ()
 
bool TransactionHasError () const
 
void CommitTransaction ()
 
void TransactionStageCopy (pkgAcqTransactionItem *const I, const std::string &From, const std::string &To)
 Stage (queue) a copy action when the transaction is committed.
 
void TransactionStageRemoval (pkgAcqTransactionItem *const I, const std::string &FinalFile)
 Stage (queue) a removal action when the transaction is committed.
 
std::string GetFinalFilename () const override
 Get the full pathname of the final file for the current URI.
 
 pkgAcqMetaBase (pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &DataTarget) APT_NONNULL(2
 
- Public Member Functions inherited from pkgAcqTransactionItem
std::string DescURI () const override
 
HashStringList GetExpectedHashes () const override
 
virtual std::string GetMetaKey () const
 
bool HashesRequired () const override
 
virtual bool AcquireByHash () const
 
 pkgAcqTransactionItem (pkgAcquire *const Owner, pkgAcqMetaClearSig *const TransactionManager, IndexTarget const &Target) APT_NONNULL(2
 

Protected Member Functions

void Init (std::string const &URIDesc, std::string const &ShortDesc)
 delayed constructor
 
- Protected Member Functions inherited from pkgAcqMetaBase
bool CheckDownloadDone (pkgAcqTransactionItem *const I, const std::string &Message, HashStringList const &Hashes) const
 Called when a file is finished being retrieved.
 
void QueueForSignatureVerify (pkgAcqTransactionItem *const I, std::string const &File, std::string const &Signature)
 Queue the downloaded Signature for verification.
 
std::string Custom600Headers () const override
 
bool CheckAuthDone (std::string const &Message, pkgAcquire::MethodConfig const *const Cnf)
 Called when authentication succeeded.
 
bool CheckStopAuthentication (pkgAcquire::Item *const I, const std::string &Message)
 
bool VerifyVendor (std::string const &Message)
 Check that the release file is a release file for the correct distribution.
 
bool TransactionState (TransactionStates state) override
 
- Protected Member Functions inherited from pkgAcqTransactionItem
HashStringList GetExpectedHashesFor (std::string const &MetaKey) const
 
bool QueueURI (pkgAcquire::ItemDesc &Item) override
 

Protected Attributes

IndexTarget const DetachedSigTarget
 
- Protected Attributes inherited from pkgAcqMetaBase
std::vector< pkgAcqTransactionItem * > Transaction
 
bool AuthPass
 If true, the index's signature is currently being verified.
 

Friends

class pkgAcqMetaSig
 

Additional Inherited Members

- Public Types inherited from pkgAcqTransactionItem
enum  TransactionStates { TransactionStarted , TransactionCommit , TransactionAbort }
 
- Public Attributes inherited from pkgAcqMetaBase
bool IMSHit
 
TransactionStates State
 
std::string BaseURI
 
- Public Attributes inherited from pkgAcqTransactionItem
IndexTarget const Target
 
std::string PartialFile
 storge name until a transaction is finished
 
pkgAcqMetaClearSig *const TransactionManager
 TransactionManager.
 

Detailed Description

An item that is responsible for downloading the meta-index {{{ file (i.e., Release) itself and verifying its signature.

Once the download and verification are complete, the downloads of the individual index files are queued up using pkgAcqDiffIndex. If the meta-index file had a valid signature, the expected hashsums of the index files will be the md5sums listed in the meta-index; otherwise, the expected hashsums will be "" (causing the authentication of the index files to be bypassed).


The documentation for this class was generated from the following files: