// METHOD NAME : Target::Target
// METHOD TYPE : Ctor
//
- Target::Target( const Pathname & root )
- : _pimpl( new Impl(root) )
+ Target::Target( const Pathname & root, bool doRebuild_r )
+ : _pimpl( new Impl(root,doRebuild_r) )
{
}
return _nullimpl;
}
+ std::ostream & operator<<( std::ostream & str, const Target::DistributionLabel & obj )
+ {
+ str << "summary=" << obj.summary << endl;
+ str << "shortName=" << obj.shortName << endl;
+ return str;
+ }
///////////////////////////////////////////////////////////////////
//
//
///////////////////////////////////////////////////////////////////
- const ResStore & Target::resolvables()
- { return _pimpl->resolvables(); }
+ void Target::buildCache()
+ { _pimpl->buildCache(); }
- target::rpm::RpmDb & Target::rpmDb()
- { return _pimpl->rpm(); }
+ void Target::cleanCache()
+ { _pimpl->clearCache(); }
-#ifndef STORAGE_DISABLED
- /** enables the storage target */
- bool Target::isStorageEnabled() const
- { return _pimpl->isStorageEnabled(); }
+ void Target::load()
+ { _pimpl->load(); }
- void Target::enableStorage(const Pathname &root_r)
- { _pimpl->enableStorage(root_r); }
-#endif
+ void Target::reload()
+ { _pimpl->reload(); }
+
+ void Target::unload()
+ { _pimpl->unload(); }
- int Target::commit(ResPool pool_r, int medianr, PoolItemList & errors_r
- , PoolItemList & remaining_r, PoolItemList & srcremaining_r)
- { return _pimpl->commit(pool_r, medianr, errors_r, remaining_r, srcremaining_r); }
+ target::rpm::RpmDb & Target::rpmDb()
+ { return _pimpl->rpm(); }
+
+ Pathname Target::root() const
+ { return _pimpl->root(); }
bool Target::providesFile (const std::string & name_str, const std::string & path_str) const
{ return _pimpl->providesFile (name_str, path_str); }
- ResObject::constPtr Target::whoOwnsFile (const std::string & path_str) const
+ std::string Target::whoOwnsFile (const std::string & path_str) const
{ return _pimpl->whoOwnsFile (path_str); }
std::ostream & Target::dumpOn( std::ostream & str ) const
{ return _pimpl->dumpOn( str ); }
- void Target::getResolvablesToInsDel ( const ResPool pool_r,
- PoolItemList & dellist_r,
- PoolItemList & instlist_r,
- PoolItemList & srclist_r ) const
- { _pimpl->getResolvablesToInsDel( pool_r, dellist_r, instlist_r, srclist_r ); }
-
- bool Target::setInstallationLogfile(const Pathname & path_r)
- { return _pimpl->setInstallationLogfile(path_r); }
+ Date Target::timestamp() const
+ { return _pimpl->timestamp(); }
+
+ Product::constPtr Target::baseProduct() const
+ { return _pimpl->baseProduct(); }
+
+ LocaleSet Target::requestedLocales() const
+ { return _pimpl->requestedLocales(); }
+ LocaleSet Target::requestedLocales( const Pathname & root_r )
+ { return target::TargetImpl::requestedLocales( root_r ); }
+
+ std::string Target::targetDistribution() const
+ { return _pimpl->targetDistribution(); }
+ std::string Target::targetDistribution( const Pathname & root_r )
+ { return target::TargetImpl::targetDistribution( root_r ); }
+
+ std::string Target::targetDistributionRelease() const
+ { return _pimpl->targetDistributionRelease(); }
+ std::string Target::targetDistributionRelease( const Pathname & root_r )
+ { return target::TargetImpl::targetDistributionRelease( root_r ); }
+
+ std::string Target::targetDistributionFlavor() const
+ { return _pimpl->targetDistributionFlavor(); }
+ std::string Target::targetDistributionFlavor( const Pathname & root_r )
+ { return target::TargetImpl::targetDistributionFlavor( root_r ); }
+
+ Target::DistributionLabel Target::distributionLabel() const
+ { return _pimpl->distributionLabel(); }
+ Target::DistributionLabel Target::distributionLabel( const Pathname & root_r )
+ { return target::TargetImpl::distributionLabel( root_r ); }
+
+ std::string Target::distributionVersion() const
+ { return _pimpl->distributionVersion(); }
+ std::string Target::distributionVersion( const Pathname & root_r )
+ { return target::TargetImpl::distributionVersion( root_r ); }
+
+ std::string Target::distributionFlavor() const
+ { return _pimpl->distributionFlavor(); }
+ std::string Target::distributionFlavor( const Pathname & root_r )
+ { return target::TargetImpl::distributionFlavor( root_r ); }
+
+ std::string Target::anonymousUniqueId() const
+ { return _pimpl->anonymousUniqueId(); }
+ std::string Target::anonymousUniqueId( const Pathname & root_r )
+ { return target::TargetImpl::anonymousUniqueId( root_r ); }
/////////////////////////////////////////////////////////////////
} // namespace zypp