apt @VERSION@
Public Member Functions

pkgAcqIndexTrans Class Reference

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.
 pkgAcqIndexTrans (pkgAcquire *Owner, struct IndexTarget const *const Target, HashString const &ExpectedHash, indexRecords const *MetaIndexParser)

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:
OwnerThe pkgAcquire object with which this item is associated.
URIThe URI of the index file that is to be downloaded.
URIDescA "URI-style" description of this index file.
ShortDescA 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.

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.

Parameters:
MessageAn RFC822-formatted message from the acquire method describing what went wrong. Use LookupTag() to parse it.
CnfThe method via which the worker tried to fetch this object.
See also:
pkgAcqMethod

Reimplemented from pkgAcqIndex.


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