#include <RpmHeader.h>
Inheritance diagram for zypp::target::rpm::RpmHeader:

Public Types | |
| typedef intrusive_ptr< RpmHeader > | Ptr |
| typedef intrusive_ptr< const RpmHeader > | constPtr |
| enum | VERIFICATION { VERIFY = 0x0000, NODIGEST = (1<<0), NOSIGNATURE = (1<<1), NOVERIFY = 0xffff } |
| Digest and signature verification flags. More... | |
Public Member Functions | |
| RpmHeader (Header h_r=0) | |
| RpmHeader (BinHeader::Ptr &rhs) | |
| Dangerous!< | |
| virtual | ~RpmHeader () |
| bool | isSrc () const |
| True if the rpm header is from a source rpm. | |
| bool | isPatchRpm () const |
| True if the rpm header is from a patch rpm. | |
| bool | isDeltaRpm () const |
| True if the rpm header is from a delta rpm. | |
| std::string | tag_name () const |
| std::string | tag_epoch () const |
| std::string | tag_version () const |
| std::string | tag_release () const |
| std::string | tag_arch () const |
| Edition | tag_edition () const |
| return complete edition (from tag_epoch, tag_version, tag_release) returns Edition::noedition if an error occurs | |
| Date | tag_installtime () const |
| Date | tag_buildtime () const |
| CapSet | tag_provides (std::set< std::string > *freq_r=0) const |
If freq_r is not NULL, file dependencies found are inserted. | |
| CapSet | tag_requires (std::set< std::string > *freq_r=0) const |
| CapSet | tag_prerequires (std::set< std::string > *freq_r=0) const |
| CapSet | tag_conflicts (std::set< std::string > *freq_r=0) const |
| CapSet | tag_obsoletes (std::set< std::string > *freq_r=0) const |
| CapSet | tag_enhances (std::set< std::string > *freq_r=0) const |
| CapSet | tag_supplements (std::set< std::string > *freq_r=0) const |
| ByteCount | tag_size () const |
| ByteCount | tag_archivesize () const |
| std::string | tag_summary () const |
| std::string | tag_description () const |
| std::string | tag_group () const |
| std::string | tag_vendor () const |
| std::string | tag_distribution () const |
| std::string | tag_license () const |
| std::string | tag_buildhost () const |
| std::string | tag_packager () const |
| std::string | tag_url () const |
| std::string | tag_os () const |
| std::string | tag_prein () const |
| std::string | tag_postin () const |
| std::string | tag_preun () const |
| std::string | tag_postun () const |
| std::string | tag_sourcerpm () const |
| std::list< std::string > | tag_filenames () const |
| just the list of names | |
| std::list< FileInfo > | tag_fileinfos () const |
| complete information about the files (extended version of tag_filenames()) | |
| Changelog | tag_changelog () const |
| DiskUsage & | tag_du (DiskUsage &dudata_r) const |
Returns reference to arg dudata_r. | |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| Overload to realize std::ostream & operator<<. | |
Static Public Member Functions | |
| static RpmHeader::constPtr | readPackage (const Pathname &path, VERIFICATION verification=VERIFY) |
| Get an accessible packages data from disk. | |
Private Member Functions | |
| CapSet | PkgRelList_val (tag tag_r, bool pre, std::set< std::string > *freq_r=0) const |
RpmHeader provides methods to query the content of a rpm header struct retrieved from the RPM database or by reading the rpm header of a package on disk.
The rpm header contains all data associated with a package. So you probabely do not want to permanently store too many of them.
NEVER create RpmHeader from a NULL Header!
Definition at line 58 of file RpmHeader.h.
|
|
Reimplemented from zypp::target::rpm::BinHeader. Definition at line 60 of file RpmHeader.h. |
|
|
Reimplemented from zypp::target::rpm::BinHeader. Definition at line 61 of file RpmHeader.h. |
|
|
Digest and signature verification flags.
Definition at line 185 of file RpmHeader.h. |
|
|
Definition at line 45 of file RpmHeader.cc. |
|
|
Dangerous!< This one takes the header out of rhs and leaves rhs empty.
Definition at line 56 of file RpmHeader.cc. |
|
|
Definition at line 69 of file RpmHeader.cc. |
|
||||||||||||||||
|
|
|
|
True if the rpm header is from a source rpm.
Definition at line 147 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::has_tag(). |
|
|
True if the rpm header is from a patch rpm.
Definition at line 152 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::stringList_val(). |
|
|
True if the rpm header is from a delta rpm.
Definition at line 157 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 170 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). Referenced by tag_edition(). |
|
|
Definition at line 183 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::int_val(). Referenced by tag_edition(). |
|
|
Definition at line 201 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). Referenced by tag_edition(). |
|
|
Definition at line 214 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). Referenced by tag_edition(). |
|
|
Definition at line 247 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
return complete edition (from tag_epoch, tag_version, tag_release) returns Edition::noedition if an error occurs
Definition at line 227 of file RpmHeader.cc. References tag_epoch(), tag_name(), tag_release(), tag_version(), WAR, and ZYPP_CAUGHT. |
|
|
Definition at line 260 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::int_val(). |
|
|
Definition at line 273 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::int_val(). |
|
|
If
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 505 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::int_val(). |
|
|
Definition at line 518 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::int_val(). |
|
|
Definition at line 531 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 544 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 557 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 570 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 583 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 596 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 609 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 622 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 635 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 648 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 661 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 674 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 687 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 700 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
Definition at line 713 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::string_val(). |
|
|
just the list of names
Definition at line 726 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::int_list(), and zypp::target::rpm::BinHeader::string_list(). |
|
|
complete information about the files (extended version of tag_filenames())
Definition at line 752 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::int_list(), and zypp::target::rpm::BinHeader::string_list(). |
|
|
Definition at line 827 of file RpmHeader.cc. References zypp::target::rpm::BinHeader::int_list(), and zypp::target::rpm::BinHeader::string_list(). |
|
|
Returns reference to arg
Definition at line 853 of file RpmHeader.cc. References zypp::DiskUsage::clear(), zypp::target::rpm::BinHeader::int_list(), and zypp::target::rpm::BinHeader::string_list(). |
|
|
Overload to realize std::ostream & operator<<.
Reimplemented from zypp::target::rpm::BinHeader. |
|
||||||||||||
|
Get an accessible packages data from disk. Returns NULL on any error. Definition at line 79 of file RpmHeader.cc. References ERR, and zypp::filesystem::PathInfo::isFile(). Referenced by zypp::target::rpm::RpmDb::backupPackage(). |
1.4.6