15#include <zypp/base/Logger.h>
16#include <zypp/base/String.h>
31 const std::string & s( url_r.
getScheme() );
32 return s ==
"dir" || s ==
"file";
90 static const IdString support_unsupported(
"support_unsupported" );
91 static const IdString support_acc(
"support_acc" );
92 static const IdString support_l1(
"support_l1" );
93 static const IdString support_l2(
"support_l2" );
94 static const IdString support_l3(
"support_l3" );
100 if ( solv.edition() ==
edition()
101 && solv.ident() ==
ident()
149 ERR <<
"Target not initialized. Changelog is not available." << std::endl;
156 target->rpmDb().getData(
name(), header);
157 return header ? header->tag_changelog() :
Changelog();
159 WAR <<
"changelog is not available for uninstalled packages" << std::endl;
189 std::list<std::string> ret;
Store and operate with byte count.
static const std::string & md5Type()
Edition represents [epoch:]version[-release]
Access to the sat-pools string space.
std::string asString() const
Conversion to std::string
std::string packager() const
std::string sourcePkgLongName() const
The source rpms "name-version-release.type".
bool maybeUnsupported() const
True if the vendor support for this package is unknown or explictly unsupported.
Keywords keywords() const
Pathname cachedLocation() const
Location of the downloaded package in cache or an empty path.
OnMediaLocation location() const
Location of the resolvable in the repository.
FileList filelist() const
Return the packages filelist (if available).
std::string sourcePkgName() const
Name of the source rpm this package was built from.
sat::ArrayAttr< PackageKeyword, IdString > Keywords
std::string url() const
Don't ship it as class Url, because it might be in fact anything but a legal Url.
std::string sourcePkgType() const
The type of the source rpm ("src" or "nosrc").
Package(const sat::Solvable &solvable_r)
Ctor.
sat::ArrayAttr< std::string, std::string > FileList
Edition sourcePkgEdition() const
Edition of the source rpm this package was built from.
VendorSupportOption vendorSupport() const
Returns the level of supportability the vendor gives to this package.
CheckSum checksum() const
Checksum the source says this package should have.
ByteCount sourcesize() const
Size of corresponding the source package.
std::list< std::string > authors() const
std::string group() const
std::string buildhost() const
Changelog changelog() const
Get the package change log.
std::string distribution() const
std::string license() const
What is known about a repository.
Url url() const
Pars pro toto: The first repository url.
Pathname path() const
Repository path.
Pathname packagesPath() const
Path where this repo packages are cached.
Base for resolvable objects.
std::string getScheme() const
Returns the scheme name of the URL.
std::string getPathName(EEncoding eflag=zypp::url::E_DECODED) const
Returns the path name from the URL.
Wrapper class for stat/lstat.
const Pathname & path() const
Return current Pathname.
bool isExist() const
Return whether valid stat info exists.
const char * c_str() const
Return current Pathname as C-string.
LookupAttr::TransformIterator based container to retrieve list attributes.
static const SolvAttr filelist
static const SolvAttr distribution
static const SolvAttr group
static const SolvAttr sourceevr
static const SolvAttr sourcesize
static const SolvAttr packager
static const SolvAttr url
static const SolvAttr sourcename
static const SolvAttr checksum
static const SolvAttr sourcearch
static const SolvAttr keywords
static const SolvAttr authors
static const SolvAttr license
static const SolvAttr buildhost
A Solvable object within the sat Pool.
Container of Solvable providing a Capability (read only).
int IdType
Generic Id type.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
unsigned split(const C_Str &line_r, TOutputIterator result_r, const C_Str &sepchars_r=" \t", const Trim trim_r=NO_TRIM)
Split line_r into words.
Easy-to use interface to the ZYPP dependency resolver.
@ VendorSupportACC
Additional Customer Contract necessary.
@ VendorSupportLevel3
Problem resolution, which means technical support designed to resolve complex problems by engaging en...
@ VendorSupportUnknown
The support for this package is unknown.
@ VendorSupportLevel1
Problem determination, which means technical support designed to provide compatibility information,...
@ VendorSupportUnsupported
The package is known to be unsupported by the vendor.
@ VendorSupportLevel2
Problem isolation, which means technical support designed to duplicate customer problems,...
std::list< ChangelogEntry > Changelog
List of ChangelogEntry.
Pathname cachedLocation(const OnMediaLocation &loc_r, const RepoInfo &repo_r)
bool schemeIsLocalDir(const Url &url_r)
OnMediaLocation lookupLocation() const
bool identical(const Solvable &rhs) const
Solvable::IdType id() const
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
std::string lookupStrAttribute(const SolvAttr &attr) const
RepoInfo repoInfo() const
Solvable satSolvable() const
Return the corresponding sat::Solvable.
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
Repository repository() const
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
#define IMPL_PTR_TYPE(NAME)