|
libzypp
15.24.2
|
Collect info about what kind of rpmdb seems to be present by looking at paths and filenames. More...
#include <librpmDb.h>
Public Member Functions | |
| DbDirInfo (const Pathname &root_r, const Pathname &dbPath_r) | |
| For Constructor arguments see accessPath. More... | |
| const Pathname & | root () const |
| Root directory for all operations. More... | |
| const Pathname & | dbPath () const |
| Directory that contains the rpmdb. More... | |
| const PathInfo & | dbDir () const |
| database directory (unset on illegal constructor arguments) More... | |
| const PathInfo & | dbV4 () const |
| rpmV4 database (_dbDir/Packages) More... | |
| const PathInfo & | dbV3 () const |
| rpmV3 database (_dbDir/packages.rpm) More... | |
| const PathInfo & | dbV3ToV4 () const |
| rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3) More... | |
| void | restat () |
| Restat all paths. More... | |
| bool | illegalArgs () const |
| Whether constructor arguments were illegal. More... | |
| bool | usableArgs () const |
| Whether constructor arguments were llegal and dbDir either is a directory or may be created (path does not exist). More... | |
| bool | hasDbDir () const |
| Whether dbDir directory exists. More... | |
| bool | hasDbV4 () const |
| Whether dbV4 file exists. More... | |
| bool | hasDbV3 () const |
| Whether dbV3 file exists. More... | |
| bool | hasDbV3ToV4 () const |
| Whether dbV3ToV4 file exists. More... | |
Private Attributes | |
| Pathname | _root |
| Root directory for all operations. More... | |
| Pathname | _dbPath |
| Directory that contains the rpmdb. More... | |
| PathInfo | _dbDir |
| database directory (unset on illegal constructor arguments) More... | |
| PathInfo | _dbV4 |
| rpmV4 database (_dbDir/Packages) More... | |
| PathInfo | _dbV3 |
| rpmV3 database (_dbDir/packages.rpm) More... | |
| PathInfo | _dbV3ToV4 |
| rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3) More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const DbDirInfo &obj) |
Collect info about what kind of rpmdb seems to be present by looking at paths and filenames.
Definition at line 327 of file librpmDb.h.
| zypp::target::rpm::librpmDb::DbDirInfo::DbDirInfo | ( | const Pathname & | root_r, |
| const Pathname & | dbPath_r | ||
| ) |
For Constructor arguments see accessPath.
On illegal arguments _dbDir is unset.
Definition at line 504 of file librpmDb.cc.
|
inline |
Root directory for all operations.
Definition at line 376 of file librpmDb.h.
|
inline |
Directory that contains the rpmdb.
Definition at line 384 of file librpmDb.h.
|
inline |
database directory (unset on illegal constructor arguments)
Definition at line 392 of file librpmDb.h.
|
inline |
rpmV4 database (_dbDir/Packages)
Definition at line 400 of file librpmDb.h.
|
inline |
rpmV3 database (_dbDir/packages.rpm)
Definition at line 408 of file librpmDb.h.
|
inline |
rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3)
Definition at line 416 of file librpmDb.h.
| void zypp::target::rpm::librpmDb::DbDirInfo::restat | ( | ) |
Restat all paths.
Definition at line 529 of file librpmDb.cc.
|
inline |
Whether constructor arguments were illegal.
Definition at line 433 of file librpmDb.h.
|
inline |
Whether constructor arguments were llegal and dbDir either is a directory or may be created (path does not exist).
Definition at line 442 of file librpmDb.h.
|
inline |
Whether dbDir directory exists.
Definition at line 450 of file librpmDb.h.
|
inline |
Whether dbV4 file exists.
Definition at line 458 of file librpmDb.h.
|
inline |
Whether dbV3 file exists.
Definition at line 466 of file librpmDb.h.
|
inline |
Whether dbV3ToV4 file exists.
Definition at line 474 of file librpmDb.h.
|
friend |
Definition at line 544 of file librpmDb.cc.
|
private |
Root directory for all operations.
Definition at line 336 of file librpmDb.h.
|
private |
Directory that contains the rpmdb.
Definition at line 341 of file librpmDb.h.
|
private |
database directory (unset on illegal constructor arguments)
Definition at line 346 of file librpmDb.h.
|
private |
rpmV4 database (_dbDir/Packages)
Definition at line 351 of file librpmDb.h.
|
private |
rpmV3 database (_dbDir/packages.rpm)
Definition at line 356 of file librpmDb.h.
|
private |
rpmV3 database backup created on conversion to rpmV4 (_dbDir/packages.rpm3)
Definition at line 361 of file librpmDb.h.