apt  0.9.7.1ubuntu2
Public Types | Public Attributes | List of all members
pkgCache::Version Struct Reference

information for a single version of a package More...

#include <pkgcache.h>

Public Types

enum  VerMultiArch {
  None = 0, All = (1<<0), Foreign = (1<<1), Same = (1<<2),
  Allowed = (1<<3), AllForeign = All | Foreign, AllAllowed = All | Allowed
}
 Multi-Arch capabilities of a package version. More...

Public Attributes

map_ptrloc VerStr
 complete version string
map_ptrloc Section
 section this version is filled in
unsigned char MultiArch
 stores the MultiArch capabilities of this version
map_ptrloc FileList
 references all the PackageFile's that this version came from
map_ptrloc NextVer
 next (lower or equal) version in the linked list
map_ptrloc DescriptionList
 next description in the linked list
map_ptrloc DependsList
 base of the dependency list
map_ptrloc ParentPkg
 links to the owning package
map_ptrloc ProvidesList
 list of pkgCache::Provides
unsigned long long Size
 archive size for this version
unsigned long long InstalledSize
 uncompressed size for this version
unsigned short Hash
 characteristic value representing this version
unsigned int ID
 unique sequel ID
unsigned char Priority
 parsed priority value

Detailed Description

information for a single version of a package

The version list is always sorted from highest version to lowest version by the generator. Equal version numbers are either merged or handled as separate versions based on the Hash value.

Member Enumeration Documentation

Multi-Arch capabilities of a package version.

Enumerator:
None 

is the default and doesn't trigger special behaviour

All 

will cause that Ver.Arch() will report "all"

Foreign 

can satisfy dependencies in another architecture

Same 

can be co-installed with itself from other architectures

Allowed 

other packages are allowed to depend on thispkg:any

Member Data Documentation

map_ptrloc FileList

references all the PackageFile's that this version came from

FileList can be used to determine what distribution(s) the Version applies to. If FileList is 0 then this is a blank version. The structure should also have a 0 in all other fields excluding pkgCache::Version::VerStr and Possibly pkgCache::Version::NextVer.

unsigned short Hash

characteristic value representing this version

No two packages in existence should have the same VerStr and Hash with different contents.

Referenced by pkgCache::VerIterator::SimilarVer().

unsigned char MultiArch

stores the MultiArch capabilities of this version

Flags used are defined in pkgCache::Version::VerMultiArch

map_ptrloc ParentPkg

links to the owning package

This allows reverse dependencies to determine the package

unsigned long long Size

archive size for this version

For Debian this is the size of the .deb file.


The documentation for this struct was generated from the following file: