|
apt
@VERSION@
|
An acquire item that is responsible for fetching a {{{ translated index file. More...
#include <acquire-item.h>
Public Member Functions | |
| virtual void | Failed (std::string Message, pkgAcquire::MethodConfig *Cnf) |
| Invoked by the acquire worker when the object couldn't be fetched. | |
| virtual std::string | Custom600Headers () |
| Custom headers to be sent to the fetch process. | |
| pkgAcqIndexTrans (pkgAcquire *Owner, std::string URI, std::string URIDesc, std::string ShortDesc) | |
| Create a pkgAcqIndexTrans. | |
| pkgAcqIndexTrans (pkgAcquire *Owner, struct IndexTarget const *const Target, HashString const &ExpectedHash, indexRecords const *MetaIndexParser) | |
An acquire item that is responsible for fetching a {{{ translated index file.
The only difference from pkgAcqIndex is that transient failures are suppressed: no error occurs if the translated index file is missing.
| pkgAcqIndexTrans | ( | pkgAcquire * | Owner, |
| std::string | URI, | ||
| std::string | URIDesc, | ||
| std::string | ShortDesc | ||
| ) |
Create a pkgAcqIndexTrans.
| Owner | The pkgAcquire object with which this item is associated. |
| URI | The URI of the index file that is to be downloaded. |
| URIDesc | A "URI-style" description of this index file. |
| ShortDesc | A brief description of this index file. |
| string Custom600Headers | ( | ) | [virtual] |
Custom headers to be sent to the fetch process.
Reimplemented from pkgAcqIndex.
References pkgAcqIndex::RealURI.
| void Failed | ( | std::string | Message, |
| pkgAcquire::MethodConfig * | Cnf | ||
| ) | [virtual] |
Invoked by the acquire worker when the object couldn't be fetched.
This is a branch of the continuation of the fetch process.
| Message | An RFC822-formatted message from the acquire method describing what went wrong. Use LookupTag() to parse it. |
| Cnf | The method via which the worker tried to fetch this object. |
Reimplemented from pkgAcqIndex.
References pkgAcquire::Item::Complete, pkgAcqIndex::CompressionExtension, pkgAcquire::Item::Dequeue(), pkgAcqIndex::Desc, pkgAcquire::ItemDesc::Description, pkgAcquire::MethodConfig::LocalOnly, pkgAcqIndex::RealURI, pkgAcquire::ItemDesc::ShortDesc, pkgAcquire::Item::StatDone, and pkgAcquire::Item::StatIdle.
1.7.6.1