apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

debReleaseIndex Class Reference

#include <debmetaindex.h>

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

Public Member Functions

APT_HIDDEN std::string MetaIndexInfo (const char *Type) const
 
APT_HIDDEN std::string MetaIndexFile (const char *Types) const
 
APT_HIDDEN std::string MetaIndexURI (const char *Type) const
 
 debReleaseIndex (std::string const &URI, std::string const &Dist, std::map< std::string, std::string > const &Options)
 
 debReleaseIndex (std::string const &URI, std::string const &Dist, bool const Trusted, std::map< std::string, std::string > const &Options)
 
virtual ~debReleaseIndex ()
 
virtual std::string ArchiveURI (std::string const &File) const APT_OVERRIDE
 
virtual bool GetIndexes (pkgAcquire *Owner, bool const &GetAll=false) APT_OVERRIDE
 
virtual std::vector< IndexTargetGetIndexTargets () const APT_OVERRIDE
 
virtual std::string Describe () const APT_OVERRIDE
 
virtual pkgCache::RlsFileIterator FindInCache (pkgCache &Cache, bool const ModifyCheck) const APT_OVERRIDE
 
virtual bool Merge (pkgCacheGenerator &Gen, OpProgress *Prog) const APT_OVERRIDE
 
virtual bool Load (std::string const &Filename, std::string *const ErrorText) APT_OVERRIDE
 
virtual metaIndexUnloadedClone () const APT_OVERRIDE
 
virtual std::vector< pkgIndexFile * > * GetIndexFiles () APT_OVERRIDE
 
bool SetTrusted (TriState const Trusted)
 
bool SetCheckValidUntil (TriState const Trusted)
 
bool SetValidUntilMin (time_t const Valid)
 
bool SetValidUntilMax (time_t const Valid)
 
bool SetCheckDate (TriState const CheckDate)
 
bool SetDateMaxFuture (time_t const DateMaxFuture)
 
bool SetSignedBy (std::string const &SignedBy)
 
std::map< std::string, std::string > GetReleaseOptions ()
 
virtual bool IsTrusted () const APT_OVERRIDE
 
bool IsArchitectureSupported (std::string const &arch) const override
 
bool IsArchitectureAllSupportedFor (IndexTarget const &target) const override
 
bool HasSupportForComponent (std::string const &component) const override
 
APT_PURE time_t GetNotBefore () const override
 
void AddComponent (std::string const &sourcesEntry, bool const isSrc, std::string const &Name, std::vector< std::string > const &Targets, std::vector< std::string > const &Architectures, std::vector< std::string > Languages, bool const usePDiffs, std::string const &useByHash)
 
- Public Member Functions inherited from metaIndex
std::string GetURI () const
 
std::string GetDist () const
 
const char * GetType () const
 
TriState GetTrusted () const
 
std::string GetSignedBy () const
 
std::string GetOrigin () const
 
std::string GetLabel () const
 
std::string GetVersion () const
 
std::string GetCodename () const
 
std::string GetSuite () const
 
std::string GetReleaseNotes () const
 
signed short GetDefaultPin () const
 
bool GetSupportsAcquireByHash () const
 
time_t GetValidUntil () const
 
time_t GetDate () const
 
std::string GetExpectedDist () const
 
bool CheckDist (std::string const &MaybeDist) const
 
void swapLoad (metaIndex *const OldMetaIndex)
 
checkSumLookup (std::string const &MetaKey) const
 
bool Exists (std::string const &MetaKey) const
 tests if a checksum for this file is available More...
 
std::vector< std::string > MetaKeys () const
 
TriState GetLoadedSuccessfully () const
 
 metaIndex (std::string const &URI, std::string const &Dist, char const *const Type)
 
virtual ~metaIndex ()
 

Private Member Functions

APT_HIDDEN bool parseSumData (const char *&Start, const char *End, std::string &Name, std::string &Hash, unsigned long long &Size)
 

Private Attributes

debReleaseIndexPrivate *const d
 

Additional Inherited Members

- Protected Attributes inherited from metaIndex
std::vector< pkgIndexFile * > * Indexes
 
const char * Type
 
std::string URI
 
std::string Dist
 
TriState Trusted
 
std::string SignedBy
 
std::string Suite
 
std::string Codename
 
std::string Origin
 
std::string Label
 
std::string Version
 
signed short DefaultPin
 
std::string ReleaseNotes
 
time_t Date
 
time_t ValidUntil
 
bool SupportsAcquireByHash
 
std::map< std::string, checkSum * > Entries
 
TriState LoadedSuccessfully
 

Detailed Description

Definition at line 19 of file debmetaindex.h.

Constructor & Destructor Documentation

◆ debReleaseIndex() [1/2]

debReleaseIndex ( std::string const &  URI,
std::string const &  Dist,
std::map< std::string, std::string > const &  Options 
)

Definition at line 156 of file debmetaindex.cc.

Referenced by UnloadedClone().

◆ debReleaseIndex() [2/2]

debReleaseIndex ( std::string const &  URI,
std::string const &  Dist,
bool const  Trusted,
std::map< std::string, std::string > const &  Options 
)

Definition at line 159 of file debmetaindex.cc.

References TRI_NO, TRI_YES, and metaIndex::Trusted.

◆ ~debReleaseIndex()

~debReleaseIndex ( )
virtual

Definition at line 164 of file debmetaindex.cc.

References d.

Member Function Documentation

◆ AddComponent()

void AddComponent ( std::string const &  sourcesEntry,
bool const  isSrc,
std::string const &  Name,
std::vector< std::string > const &  Targets,
std::vector< std::string > const &  Architectures,
std::vector< std::string >  Languages,
bool const  usePDiffs,
std::string const &  useByHash 
)

◆ ArchiveURI()

std::string ArchiveURI ( std::string const &  File) const
virtual

Implements metaIndex.

Definition at line 423 of file debmetaindex.cc.

References pkgAcquire::URIEncode().

◆ Describe()

std::string Describe ( ) const
virtual

Reimplemented from metaIndex.

Definition at line 130 of file debmetaindex.cc.

References MetaIndexInfo().

◆ FindInCache()

pkgCache::RlsFileIterator FindInCache ( pkgCache Cache,
bool const  ModifyCheck 
) const
virtual

◆ GetIndexes()

bool GetIndexes ( pkgAcquire Owner,
bool const &  GetAll = false 
)
virtual

Implements metaIndex.

Definition at line 709 of file debmetaindex.cc.

References APT_TARGET, IndexTarget::FALLBACK_OF, GetIndexTargets(), and TransactionManager.

◆ GetIndexFiles()

std::vector< pkgIndexFile * > * GetIndexFiles ( )
virtual

Implements metaIndex.

Definition at line 835 of file debmetaindex.cc.

References IndexTarget::CREATED_BY, GetIndexTargets(), metaIndex::Indexes, and IsTrusted().

◆ GetIndexTargets()

std::vector< IndexTarget > GetIndexTargets ( ) const
virtual

◆ GetNotBefore()

time_t GetNotBefore ( ) const
overridevirtual

Implements metaIndex.

Definition at line 634 of file debmetaindex.cc.

References d, and debReleaseIndexPrivate::NotBefore.

◆ GetReleaseOptions()

std::map< std::string, std::string > GetReleaseOptions ( )

Definition at line 855 of file debmetaindex.cc.

References d, and debReleaseIndexPrivate::ReleaseOptions.

◆ HasSupportForComponent()

bool HasSupportForComponent ( std::string const &  component) const
overridevirtual

Reimplemented from metaIndex.

Definition at line 828 of file debmetaindex.cc.

◆ IsArchitectureAllSupportedFor()

bool IsArchitectureAllSupportedFor ( IndexTarget const &  target) const
overridevirtual

Reimplemented from metaIndex.

Definition at line 817 of file debmetaindex.cc.

References IndexTarget::CREATED_BY.

◆ IsArchitectureSupported()

bool IsArchitectureSupported ( std::string const &  arch) const
overridevirtual

Reimplemented from metaIndex.

Definition at line 810 of file debmetaindex.cc.

◆ IsTrusted()

bool IsTrusted ( ) const
virtual

Implements metaIndex.

Definition at line 792 of file debmetaindex.cc.

References _config, FileExists(), Configuration::FindB(), MetaIndexFile(), TRI_NO, TRI_YES, and metaIndex::Trusted.

Referenced by GetIndexFiles().

◆ Load()

bool Load ( std::string const &  Filename,
std::string *const  ErrorText 
)
virtual

◆ Merge()

◆ MetaIndexFile()

std::string MetaIndexFile ( const char *  Types) const

◆ MetaIndexInfo()

std::string MetaIndexInfo ( const char *  Type) const

Definition at line 116 of file debmetaindex.cc.

References URI::ArchiveOnly(), metaIndex::Dist, and metaIndex::Type.

Referenced by Describe().

◆ MetaIndexURI()

std::string MetaIndexURI ( const char *  Type) const

Definition at line 150 of file debmetaindex.cc.

References constructMetaIndexURI(), metaIndex::Dist, and metaIndex::Type.

Referenced by MetaIndexFile().

◆ parseSumData()

bool parseSumData ( const char *&  Start,
const char *  End,
std::string &  Name,
std::string &  Hash,
unsigned long long &  Size 
)
private

Definition at line 649 of file debmetaindex.cc.

Referenced by Load().

◆ SetCheckDate()

bool SetCheckDate ( TriState const  CheckDate)

Definition at line 758 of file debmetaindex.cc.

References debReleaseIndexPrivate::CheckDate, d, and metaIndex::Dist.

◆ SetCheckValidUntil()

bool SetCheckValidUntil ( TriState const  Trusted)

Definition at line 734 of file debmetaindex.cc.

References debReleaseIndexPrivate::CheckValidUntil, d, and metaIndex::Dist.

◆ SetDateMaxFuture()

bool SetDateMaxFuture ( time_t const  DateMaxFuture)

Definition at line 766 of file debmetaindex.cc.

References d, debReleaseIndexPrivate::DateMaxFuture, and metaIndex::Dist.

◆ SetSignedBy()

bool SetSignedBy ( std::string const &  SignedBy)

Definition at line 774 of file debmetaindex.cc.

References metaIndex::Dist, NormalizeSignedBy(), and metaIndex::SignedBy.

◆ SetTrusted()

bool SetTrusted ( TriState const  Trusted)

Definition at line 725 of file debmetaindex.cc.

References metaIndex::Dist, and metaIndex::Trusted.

◆ SetValidUntilMax()

bool SetValidUntilMax ( time_t const  Valid)

Definition at line 750 of file debmetaindex.cc.

References d, metaIndex::Dist, and debReleaseIndexPrivate::ValidUntilMax.

◆ SetValidUntilMin()

bool SetValidUntilMin ( time_t const  Valid)

Definition at line 742 of file debmetaindex.cc.

References d, metaIndex::Dist, and debReleaseIndexPrivate::ValidUntilMin.

◆ UnloadedClone()

metaIndex * UnloadedClone ( ) const
virtual
Returns
a new metaIndex object based on this one, but without information from Load

Implements metaIndex.

Definition at line 639 of file debmetaindex.cc.

References d, debReleaseIndex(), metaIndex::Dist, debReleaseIndexPrivate::ReleaseOptions, TRI_NO, TRI_YES, and metaIndex::Trusted.

Member Data Documentation

◆ d


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