15#include <zypp/base/LogTools.h>
16#include <zypp/base/IOStream.h>
17#include <zypp/base/String.h>
19#include <zypp/PathInfo.h>
20#include <zypp/TmpPath.h>
40 WAR <<
"Can't read " << pi << endl;
44 readPoolQueriesFromFile( file_r, std::back_inserter( data_r ) );
46 MIL <<
"Read " << pi << endl;
54 writePoolQueriesToFile( tmp.
path(), data_r.begin(), data_r.end() );
Wrapper class for stat/lstat.
Provide a new empty temporary file and delete it when no longer needed.
static TmpFile makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.
Save and restore hardlocks.
const Data & data() const
Return the data.
static void load(const Pathname &file_r, Data &data_r)
Read Data from file_r.
static void store(const Pathname &file_r, const Data &data_r)
Write Data to file_r.
const Pathname & file() const
Return the file path.
pool::PoolTraits::HardLockQueries Data
scoped_ptr< Data > _dataPtr
String related utilities and Regular expression matching.
int chmod(const Pathname &path, mode_t mode)
Like 'chmod'.
int rename(const Pathname &oldpath, const Pathname &newpath)
Like 'rename'.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Easy-to use interface to the ZYPP dependency resolver.