#include <librpmDb.h>
Public Member Functions | |
DbDirInfo (const Pathname &root_r, const Pathname &dbPath_r) | |
For Constructor arguments see accessPath. | |
const Pathname & | root () const |
Root directory for all operations. | |
const Pathname & | dbPath () const |
Directory that contains the rpmdb. | |
const PathInfo & | dbDir () const |
database directory (unset on illegal constructor arguments) | |
const PathInfo & | dbV4 () const |
rpmV4 database (_dbDir/Packages) | |
const PathInfo & | dbV3 () const |
rpmV3 database (_dbDir/packages.rpm) | |
const PathInfo & | dbV3ToV4 () const |
rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3) | |
void | restat () |
Restat all paths. | |
bool | illegalArgs () const |
Whether constructor arguments were illegal. | |
bool | usableArgs () const |
Whether constructor arguments were llegal and dbDir either is a directory or may be created (path does not exist). | |
bool | hasDbDir () const |
Whether dbDir directory exists. | |
bool | hasDbV4 () const |
Whether dbV4 file exists. | |
bool | hasDbV3 () const |
Whether dbV3 file exists. | |
bool | hasDbV3ToV4 () const |
Whether dbV3ToV4 file exists. | |
Private Attributes | |
Pathname | _root |
Root directory for all operations. | |
Pathname | _dbPath |
Directory that contains the rpmdb. | |
PathInfo | _dbDir |
database directory (unset on illegal constructor arguments) | |
PathInfo | _dbV4 |
rpmV4 database (_dbDir/Packages) | |
PathInfo | _dbV3 |
rpmV3 database (_dbDir/packages.rpm) | |
PathInfo | _dbV3ToV4 |
rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3) | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const DbDirInfo &obj) |
Definition at line 306 of file librpmDb.h.
|
For Constructor arguments see accessPath. On illegal arguments _dbDir is unset. Definition at line 470 of file librpmDb.cc. References _dbDir, _dbPath, _dbV3, _dbV3ToV4, _dbV4, _root, zypp::filesystem::Pathname::absolute(), DBG, ERR, and zypp::filesystem::PathInfo::path(). |
|
Root directory for all operations.
Definition at line 354 of file librpmDb.h. References _root. Referenced by zypp::target::rpm::operator<<(). |
|
Directory that contains the rpmdb.
Definition at line 359 of file librpmDb.h. References _dbPath. Referenced by zypp::target::rpm::operator<<(). |
|
database directory (unset on illegal constructor arguments)
Definition at line 364 of file librpmDb.h. References _dbDir. |
|
rpmV4 database (_dbDir/Packages)
Definition at line 369 of file librpmDb.h. References _dbV4. |
|
rpmV3 database (_dbDir/packages.rpm)
Definition at line 374 of file librpmDb.h. References _dbV3. |
|
rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3)
Definition at line 379 of file librpmDb.h. References _dbV3ToV4. |
|
Restat all paths.
Definition at line 492 of file librpmDb.cc. |
|
Whether constructor arguments were illegal.
Definition at line 393 of file librpmDb.h. References _dbDir, zypp::filesystem::Pathname::empty(), and zypp::filesystem::PathInfo::path(). Referenced by zypp::target::rpm::RpmDb::internal_initDatabase(), and zypp::target::rpm::operator<<(). |
|
Whether constructor arguments were llegal and dbDir either is a directory or may be created (path does not exist).
Definition at line 399 of file librpmDb.h. References _dbDir, zypp::filesystem::Pathname::empty(), zypp::filesystem::PathInfo::isDir(), zypp::filesystem::PathInfo::isExist(), and zypp::filesystem::PathInfo::path(). |
|
Whether dbDir directory exists.
Definition at line 404 of file librpmDb.h. References _dbDir, and zypp::filesystem::PathInfo::isDir(). |
|
Whether dbV4 file exists.
Definition at line 409 of file librpmDb.h. References _dbV4, and zypp::filesystem::PathInfo::isFile(). |
|
Whether dbV3 file exists.
Definition at line 414 of file librpmDb.h. References _dbV3, and zypp::filesystem::PathInfo::isFile(). |
|
Whether dbV3ToV4 file exists.
Definition at line 419 of file librpmDb.h. References _dbV3ToV4, and zypp::filesystem::PathInfo::isFile(). |
|
Definition at line 507 of file librpmDb.cc. |
|
Root directory for all operations.
Definition at line 314 of file librpmDb.h. Referenced by DbDirInfo(), and root(). |
|
Directory that contains the rpmdb.
Definition at line 319 of file librpmDb.h. Referenced by DbDirInfo(), and dbPath(). |
|
database directory (unset on illegal constructor arguments)
Definition at line 324 of file librpmDb.h. Referenced by dbDir(), DbDirInfo(), hasDbDir(), illegalArgs(), restat(), and usableArgs(). |
|
rpmV4 database (_dbDir/Packages)
Definition at line 329 of file librpmDb.h. Referenced by DbDirInfo(), dbV4(), hasDbV4(), and restat(). |
|
rpmV3 database (_dbDir/packages.rpm)
Definition at line 334 of file librpmDb.h. Referenced by DbDirInfo(), dbV3(), hasDbV3(), and restat(). |
|
rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3)
Definition at line 339 of file librpmDb.h. Referenced by DbDirInfo(), dbV3ToV4(), hasDbV3ToV4(), and restat(). |