apt @VERSION@
|
An acquire item that downloads the detached signature {{{ of a meta-index (Release) file, then queues up the release file itself. More...
#include <acquire-item.h>
Public Member Functions | |
virtual void | Failed (string Message, pkgAcquire::MethodConfig *Cnf) |
Invoked by the acquire worker when the object couldn't be fetched. | |
virtual void | Done (string Message, unsigned long Size, string Md5Hash, pkgAcquire::MethodConfig *Cnf) |
Invoked by the acquire worker when the object was fetched successfully. | |
virtual string | Custom600Headers () |
Custom headers to be sent to the fetch process. | |
virtual string | DescURI () |
A "descriptive" URI-like string. | |
pkgAcqMetaSig (pkgAcquire *Owner, string URI, string URIDesc, string ShortDesc, string MetaIndexURI, string MetaIndexURIDesc, string MetaIndexShortDesc, const vector< struct IndexTarget * > *IndexTargets, indexRecords *MetaIndexParser) | |
Create a new pkgAcqMetaSig. | |
Protected Attributes | |
string | LastGoodSig |
The last good signature file. | |
pkgAcquire::ItemDesc | Desc |
The fetch request that is currently being processed. | |
string | RealURI |
The URI of the signature file. Unlike Desc.URI, this is never modified; it is used to determine the file that is being downloaded. | |
string | MetaIndexURI |
The URI of the meta-index file to be fetched after the signature. | |
string | MetaIndexURIDesc |
A "URI-style" description of the meta-index file to be fetched after the signature. | |
string | MetaIndexShortDesc |
A brief description of the meta-index file to be fetched after the signature. | |
indexRecords * | MetaIndexParser |
A package-system-specific parser for the meta-index file. | |
const vector< struct IndexTarget * > * | IndexTargets |
The index files which should be looked up in the meta-index and then downloaded. |
An acquire item that downloads the detached signature {{{ of a meta-index (Release) file, then queues up the release file itself.
string Custom600Headers | ( | ) | [virtual] |
Custom headers to be sent to the fetch process.
Reimplemented from pkgAcquire::Item.
References LastGoodSig.
virtual string DescURI | ( | ) | [inline, virtual] |
A "descriptive" URI-like string.
Implements pkgAcquire::Item.
References RealURI.
virtual void Done | ( | string | Message, |
unsigned long | Size, | ||
string | Hash, | ||
pkgAcquire::MethodConfig * | Cnf | ||
) | [virtual] |
Invoked by the acquire worker when the object was fetched successfully.
Note that the object might not have been written to DestFile; check for the presence of an Alt-Filename entry in Message to find the file to which it was really written.
Done is often used to switch from one stage of the processing to the next (e.g. fetching, unpacking, copying). It is one branch of the continuation of the fetch process.
Message | Data from the acquire method. Use LookupTag() to parse it. |
Size | The size of the object that was fetched. |
Hash | The HashSum of the object that was fetched. |
Cnf | The method via which the object was fetched. |
Reimplemented from pkgAcquire::Item.
virtual void Failed | ( | 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 pkgAcquire::Item.
const vector<struct IndexTarget*>* IndexTargets [protected] |
The index files which should be looked up in the meta-index and then downloaded.