Retrieve the changelog for the given version {{{.
More...
#include <apt-pkg/acquire-item.h>
|
|
HashStringList | GetExpectedHashes () const override |
| |
|
bool | HashesRequired () const override |
| |
|
void | Failed (std::string const &Message, pkgAcquire::MethodConfig const *Cnf) override |
| |
|
void | Done (std::string const &Message, HashStringList const &CalcHashes, pkgAcquire::MethodConfig const *Cnf) override |
| |
|
std::string | DescURI () const override |
| |
| | pkgAcqChangelog (pkgAcquire *const Owner, pkgCache::VerIterator const &Ver, std::string const &DestDir="", std::string const &DestFilename="") |
| | Create a new pkgAcqChangelog object.
|
| |
| | pkgAcqChangelog (pkgAcquire *const Owner, pkgCache::RlsFileIterator const &Rls, char const *const Component, char const *const SrcName, char const *const SrcVersion, std::string const &DestDir="", std::string const &DestFilename="") |
| | Create a new pkgAcqChangelog object.
|
| |
| | pkgAcqChangelog (pkgAcquire *const Owner, std::string const &URI, char const *const SrcName, char const *const SrcVersion, std::string const &DestDir="", std::string const &DestFilename="") |
| | Create a new pkgAcqChangelog object.
|
| |
|
| static std::string | URI (pkgCache::VerIterator const &Ver) |
| |
| static std::string | URI (pkgCache::RlsFileIterator const &Rls, char const *const Component, char const *const SrcName, char const *const SrcVersion) |
| |
| static std::string | URI (std::string const &Template, char const *const Component, char const *const SrcName, char const *const SrcVersion) |
| |
| static std::string | URITemplate (pkgCache::RlsFileIterator const &Rls) |
| |
Retrieve the changelog for the given version {{{.
Downloads the changelog to a temporary file it will also remove again while it is deconstructed or downloads it to a named location.
◆ pkgAcqChangelog() [1/3]
| pkgAcqChangelog |
( |
pkgAcquire *const |
Owner, |
|
|
pkgCache::VerIterator const & |
Ver, |
|
|
std::string const & |
DestDir = "", |
|
|
std::string const & |
DestFilename = "" |
|
) |
| |
Create a new pkgAcqChangelog object.
- Parameters
-
| Owner | The pkgAcquire object with which this object is associated. |
| Ver | is the version to get the changelog for |
| DestDir | The directory the file should be downloaded into. Will be an autocreated (and cleaned up) temporary directory if not set. |
| DestFilename | The filename the file should have in #DestDir Defaults to sourcepackagename.changelog if not set. |
References pkgAcquire::URI.
◆ pkgAcqChangelog() [2/3]
| pkgAcqChangelog |
( |
pkgAcquire *const |
Owner, |
|
|
pkgCache::RlsFileIterator const & |
Rls, |
|
|
char const *const |
Component, |
|
|
char const *const |
SrcName, |
|
|
char const *const |
SrcVersion, |
|
|
std::string const & |
DestDir = "", |
|
|
std::string const & |
DestFilename = "" |
|
) |
| |
Create a new pkgAcqChangelog object.
- Parameters
-
| Owner | The pkgAcquire object with which this object is associated. |
| Rls | is the Release file the package comes from |
| Component | in which the package resides, can be empty |
| SrcName | is the source package name |
| SrcVersion | is the source package version |
| DestDir | The directory the file should be downloaded into. Will be an autocreated (and cleaned up) temporary directory if not set. |
| DestFilename | The filename the file should have in #DestDir Defaults to sourcepackagename.changelog if not set. |
References pkgAcquire::URI.
◆ pkgAcqChangelog() [3/3]
| pkgAcqChangelog |
( |
pkgAcquire *const |
Owner, |
|
|
std::string const & |
URI, |
|
|
char const *const |
SrcName, |
|
|
char const *const |
SrcVersion, |
|
|
std::string const & |
DestDir = "", |
|
|
std::string const & |
DestFilename = "" |
|
) |
| |
Create a new pkgAcqChangelog object.
- Parameters
-
| Owner | The pkgAcquire object with which this object is associated. |
| URI | is to be used to get the changelog |
| SrcName | is the source package name |
| SrcVersion | is the source package version |
| DestDir | The directory the file should be downloaded into. Will be an autocreated (and cleaned up) temporary directory if not set. |
| DestFilename | The filename the file should have in #DestDir Defaults to sourcepackagename.changelog if not set. |
References pkgAcquire::URI.
◆ URI() [1/3]
| std::string URI |
( |
pkgCache::RlsFileIterator const & |
Rls, |
|
|
char const *const |
Component, |
|
|
char const *const |
SrcName, |
|
|
char const *const |
SrcVersion |
|
) |
| |
|
static |
returns the URI to the changelog of this version
- Parameters
-
| Rls | is the Release file the package comes from |
| Component | in which the package resides, can be empty |
| SrcName | is the source package name |
| SrcVersion | is the source package version |
- Returns
- the URI which will be used to acquire the changelog
References URITemplate().
◆ URI() [2/3]
| std::string URI |
( |
pkgCache::VerIterator const & |
Ver | ) |
|
|
static |
◆ URI() [3/3]
| std::string URI |
( |
std::string const & |
Template, |
|
|
char const *const |
Component, |
|
|
char const *const |
SrcName, |
|
|
char const *const |
SrcVersion |
|
) |
| |
|
static |
returns the URI to the changelog of this version
- Parameters
-
| Template | URI where @CHANGEPATH@ has to be filled in |
| Component | in which the package resides, can be empty |
| SrcName | is the source package name |
| SrcVersion | is the source package version |
- Returns
- the URI which will be used to acquire the changelog
◆ URITemplate()
| std::string URITemplate |
( |
pkgCache::RlsFileIterator const & |
Rls | ) |
|
|
static |
returns the URI template for this release file
- Parameters
-
- Returns
- the URI template to use for this release file
Referenced by URI().
The documentation for this class was generated from the following files: