MIL << "Targets closed" << endl;
}
-#ifndef STORAGE_DISABLED
bool TargetImpl::isStorageEnabled() const
{
return _storage.isInitialized();
_storage.init(root_r);
}
-#endif
const ResStore & TargetImpl::resolvables()
{
_store.insert(*it);
}
-#ifndef STORAGE_DISABLED
if ( isStorageEnabled() )
{
// resolvables stored in the zypp storage database
{
WAR << "storage target not enabled" << std::endl;
}
-#endif
return _store;
}
it->status().setStatus( ResStatus::uninstalled );
}
}
-#ifndef STORAGE_DISABLED
else // other resolvables
{
if ( isStorageEnabled() )
WAR << "storage target disabled" << std::endl;
}
}
- #endif
}
return remaining;
}
#include "zypp/target/store/PersistentStorage.h"
#include "zypp/solver/detail/Types.h"
-#define STORAGE_DISABLED
-
///////////////////////////////////////////////////////////////////
namespace zypp
{ /////////////////////////////////////////////////////////////////
media > 0 means limit commits to this media */
void commit( ResPool pool_r, unsigned int medianr, PoolItemList & errors_r, PoolItemList & remaining_r, PoolItemList & srcremaining_r );
-#ifndef STORAGE_DISABLED
/** enables the storage target */
bool isStorageEnabled() const;
void enableStorage(const Pathname &root_r);
-#endif
/** Commit ordered changes
return uncommitted ones (due to error) */
d->backend = new XMLFilesBackend(root);
}
-bool PersistentStorage::isInitalized()
+bool PersistentStorage::isInitialized() const
{
return ! (d->backend == 0L);
}
/**
* true is backend was already initialized
*/
- bool isInitalized();
+ bool isInitialized() const;
/**
* Stores a Resolvable in the active backend.