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)  

debmetaindex.cc File Reference
#include <config.h>
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/aptconfiguration.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/debindexfile.h>
#include <apt-pkg/debmetaindex.h>
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/gpgv.h>
#include <apt-pkg/hashes.h>
#include <apt-pkg/macros.h>
#include <apt-pkg/metaindex.h>
#include <apt-pkg/pkgcachegen.h>
#include <apt-pkg/sourcelist.h>
#include <apt-pkg/strutl.h>
#include <apt-pkg/tagfile.h>
#include <algorithm>
#include <map>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <string.h>
#include <sys/stat.h>
#include <apti18n.h>
Include dependency graph for debmetaindex.cc:

Go to the source code of this file.

Classes

class  debReleaseIndexPrivate
 
struct  debReleaseIndexPrivate::debSectionEntry
 
class  debSLTypeDebian
 
class  debSLTypeDeb
 
class  debSLTypeDebSrc
 

Macros

#define APT_T_CONFIG_STR(X, Y)   _config->Find(std::string("Acquire::IndexTargets::") + Type + "::" + *T + "::" + (X), (Y))
 
#define APT_T_CONFIG_BOOL(X, Y)   _config->FindB(std::string("Acquire::IndexTargets::") + Type + "::" + *T + "::" + (X), (Y))
 
#define APT_TARGET(X)   IndexTarget("", X, MetaIndexInfo(X), MetaIndexURI(X), false, false, d->ReleaseOptions)
 
#define APT_INRELEASE(TYPE, TAG, STORE)
 

Functions

static std::string transformFingergrpints (std::string finger)
 
static std::string transformFingergrpintsWithFilenames (std::string const &finger)
 
static std::string NormalizeSignedBy (std::string SignedBy, bool const SupportFilenames)
 
static std::string constructMetaIndexURI (std::string URI, std::string const &Dist, char const *const Type)
 
static void GetIndexTargetsFor (char const *const Type, std::string const &URI, std::string const &Dist, std::vector< debReleaseIndexPrivate::debSectionEntry > const &entries, std::vector< IndexTarget > &IndexTargets, std::map< std::string, std::string > const &ReleaseOptions)
 
static bool ReleaseFileName (debReleaseIndex const *const That, std::string &ReleaseFile)
 

Variables

APT_HIDDEN debSLTypeDeb _apt_DebType
 
APT_HIDDEN debSLTypeDebSrc _apt_DebSrcType
 

Macro Definition Documentation

◆ APT_INRELEASE

#define APT_INRELEASE (   TYPE,
  TAG,
  STORE 
)
Value:
data = Section.FindS(TAG); \
if (data.empty() == false) \
{ \
map_stringitem_t const storage = Gen.StoreString(pkgCacheGenerator::TYPE, data); \
if (storage == 0) return false; \
STORE = storage; \
}
return false

◆ APT_T_CONFIG_BOOL

#define APT_T_CONFIG_BOOL (   X,
 
)    _config->FindB(std::string("Acquire::IndexTargets::") + Type + "::" + *T + "::" + (X), (Y))

◆ APT_T_CONFIG_STR

#define APT_T_CONFIG_STR (   X,
 
)    _config->Find(std::string("Acquire::IndexTargets::") + Type + "::" + *T + "::" + (X), (Y))

◆ APT_TARGET

#define APT_TARGET (   X)    IndexTarget("", X, MetaIndexInfo(X), MetaIndexURI(X), false, false, d->ReleaseOptions)

Function Documentation

◆ constructMetaIndexURI()

static std::string constructMetaIndexURI ( std::string  URI,
std::string const &  Dist,
char const *const  Type 
)
static

◆ GetIndexTargetsFor()

static void GetIndexTargetsFor ( char const *const  Type,
std::string const &  URI,
std::string const &  Dist,
std::vector< debReleaseIndexPrivate::debSectionEntry > const &  entries,
std::vector< IndexTarget > &  IndexTargets,
std::map< std::string, std::string > const &  ReleaseOptions 
)
static

◆ NormalizeSignedBy()

static std::string NormalizeSignedBy ( std::string  SignedBy,
bool const  SupportFilenames 
)
static

◆ ReleaseFileName()

static bool ReleaseFileName ( debReleaseIndex const *const  That,
std::string &  ReleaseFile 
)
static

◆ transformFingergrpints()

static std::string transformFingergrpints ( std::string  finger)
static

Definition at line 31 of file debmetaindex.cc.

Referenced by NormalizeSignedBy(), and transformFingergrpintsWithFilenames().

◆ transformFingergrpintsWithFilenames()

static std::string transformFingergrpintsWithFilenames ( std::string const &  finger)
static

Definition at line 48 of file debmetaindex.cc.

References transformFingergrpints().

Referenced by NormalizeSignedBy().

Variable Documentation

◆ _apt_DebSrcType

APT_HIDDEN debSLTypeDebSrc _apt_DebSrcType

Definition at line 1319 of file debmetaindex.cc.

◆ _apt_DebType

APT_HIDDEN debSLTypeDeb _apt_DebType

Definition at line 1318 of file debmetaindex.cc.