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