Public Member Functions

pkgAcqIndexTrans Class Reference
[Acquire system {{{]

An acquire item that is responsible for fetching a {{{ translated index file. More...

#include <acquire-item.h>

Inheritance diagram for pkgAcqIndexTrans:
pkgAcqIndex pkgAcquire::Item WeakPointable

List of all members.

Public Member Functions

virtual void Failed (string Message, pkgAcquire::MethodConfig *Cnf)
 Invoked by the acquire worker when the object couldn't be fetched.
virtual string Custom600Headers ()
 Custom headers to be sent to the fetch process.
 pkgAcqIndexTrans (pkgAcquire *Owner, string URI, string URIDesc, string ShortDesc)
 Create a pkgAcqIndexTrans.

Detailed Description

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.


Constructor & Destructor Documentation

pkgAcqIndexTrans ( pkgAcquire Owner,
string  URI,
string  URIDesc,
string  ShortDesc 
)

Create a pkgAcqIndexTrans.

Parameters:
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.

Member Function Documentation

string Custom600Headers (  )  [virtual]

Custom headers to be sent to the fetch process.

Returns:
a string containing RFC822-style headers that are to be inserted into the 600 URI Acquire message sent to the fetch subprocess. The headers are inserted after a newline-less line, so they should (if nonempty) have a leading newline and no trailing newline.

Reimplemented from pkgAcqIndex.

References pkgAcqIndex::RealURI.

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.

Parameters:
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.
See also:
pkgAcqMethod

Reimplemented from pkgAcqIndex.

References pkgAcquire::Item::Complete, pkgAcquire::Item::Dequeue(), pkgAcquire::MethodConfig::LocalOnly, and pkgAcquire::Item::Status.


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