From: Jiri Srain Date: Tue, 21 Feb 2006 22:35:49 +0000 (+0000) Subject: added Target::setInstallationLogfile to set the RPM log X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~2014 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89ea64b91d7133f1507c045e570f5f245b1049c5;p=platform%2Fupstream%2Flibzypp.git added Target::setInstallationLogfile to set the RPM log (/var/log/YaST2/y2logRPM) --- diff --git a/zypp/Target.cc b/zypp/Target.cc index 71c342e..18ee0eb 100644 --- a/zypp/Target.cc +++ b/zypp/Target.cc @@ -98,6 +98,9 @@ namespace zypp 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); } + ///////////////////////////////////////////////////////////////// } // namespace zypp /////////////////////////////////////////////////////////////////// diff --git a/zypp/Target.h b/zypp/Target.h index 0f8e79b..6ba6c30 100644 --- a/zypp/Target.h +++ b/zypp/Target.h @@ -86,6 +86,9 @@ namespace zypp void enableStorage(const Pathname &root_r); #endif + /** Set the log file for target */ + bool setInstallationLogfile(const Pathname & path_r); + public: /** Ctor */ explicit diff --git a/zypp/target/TargetImpl.cc b/zypp/target/TargetImpl.cc index 139c91c..f49c732 100644 --- a/zypp/target/TargetImpl.cc +++ b/zypp/target/TargetImpl.cc @@ -348,6 +348,12 @@ namespace zypp return NULL; } + /** Set the log file for target */ + bool TargetImpl::setInstallationLogfile(const Pathname & path_r) + { + return rpm::RpmDb::setInstallationLogfile(path_r); + } + //----------------------------------------------------------------------------- /****************************************************************** ** diff --git a/zypp/target/TargetImpl.h b/zypp/target/TargetImpl.h index bd90b2b..c49dbec 100644 --- a/zypp/target/TargetImpl.h +++ b/zypp/target/TargetImpl.h @@ -108,6 +108,9 @@ namespace zypp return NULL if no resolvable provides this file */ ResObject::constPtr whoOwnsFile (const std::string & path_str) const; + /** Set the log file for target */ + bool setInstallationLogfile(const Pathname & path_r); + protected: /** All resolvables provided by the target. */ ResStore _store;